On Windows, in the Task Manager it is possible to see the command line of each processes but it is truncated.
How can I see the complete command line of each running process?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
In cmd, run the following:
wmic process get processid,commandline
To filter for a particular program:
wmic process where "name like '%chrome%'" get processid,commandline
The other properties that you can query for processes are:
Now we can use PowerShell command to achieve this:
Get-CimInstance Win32_Process -Filter "name LIKE '%OmniSharp.exe%'" | Select ProcessId, CommandLine | format-list
Get-CimInstance -Query "SELECT * FROM Win32_Process WHERE name LIKE '%OmniSharp.exe%'" | Select ProcessId, CommandLine | format-table -wrap
Open the properties dialog of the process in order to view the command line. In the case of Process Hacker, you can even add a column for the command line so that you don't have to open the properties dialogue box.