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 communityIn 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:
wmic process where "name like '%chrome%' and not Caption='wmic.exe'" get processid,commandline
Jan 27, 2022 at 21:19
Now we can use PowerShell command to achieve this:
Get-CimInstance Win32_Process -Filter "name LIKE '%OmniSharp.exe%'" | Select ProcessId, CommandLine | format-list
or
Get-CimInstance -Query "SELECT * FROM Win32_Process WHERE name LIKE '%OmniSharp.exe%'" | Select ProcessId, CommandLine | format-table -wrap
You can't see the command line in Task Manager. You can however use a third-party task manager program like Process Explorer or Process Hacker to view the command line.
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.