Before you start
You need only Task Manager and a running process to inspect. The change controls what Task Manager displays; it does not change how an application starts, and it does not require a Windows restart.
A standard user can begin with the steps below. Some process information may not be available to that account, particularly for processes running with higher privileges. Even an administrator cannot assume that every system or protected process will expose a readable command line.
Privacy warning: Command lines can include usernames, file paths, URLs, tokens, passwords, or other private information. Review and redact them before sharing a screenshot or copying output into a forum post or support ticket.
Add Command line and PID to Details
- Open Task Manager. Press Ctrl+Shift+Esc. Alternatively, open Start, search for Task Manager, and select it.
- Open the full process view if necessary.
- Windows 10: If Task Manager opens as a small window listing only a few apps, select More details at the bottom.
- Windows 11: Open Details from the navigation on the left. On the redesigned Task Manager, the navigation may appear as icons; expand the navigation if you need to see the labels. Earlier Windows 11 layouts may show Details as a tab across the top.
- Go to Details. On Windows 10, select the Details tab near the top. On Windows 11, select Details in the left navigation or the tab, depending on your layout. You should see individual processes in rows, with headings such as Name and PID.
- Open the column selector. Right-click a column heading, such as Name or PID, rather than a process row. Select Select columns.
If you see options for the selected process instead, close that menu and right-click the heading at the top of the list. The Processes page has a different column menu, so confirm you are on Details.
- Choose the columns. In the list, check Command line and PID. PID may already be checked and visible; leave it checked. Select OK.
- Make the information readable. Maximize Task Manager if necessary. If the command line is cut off, drag the border at the right edge of the Command line heading to make the column wider. Use the horizontal scroll bar if the column is outside the visible area.
The two headings should now appear in the Details list. You do not need to restart the app you are examining. To locate an entry quickly, select the Name heading to sort by process name. Select PID to sort by process ID instead.
Verify the columns with a known process
If you do not have a suitable app open, use this short test. It starts a Command Prompt process with a recognizable argument; it does not stop or change an existing process.
- Press Windows key+R to open Run.
- Enter the following and select OK:
cmd /k echo TaskManagerCheck
- Leave the Command Prompt window open. It should display
TaskManagerCheckand remain open because of the/koption. - Return to Task Manager > Details. Select Name to sort the list and find
cmd.exe. - Check that the row has a number under PID and that its Command line contains the recognizable
echo TaskManagerChecktext. The displayed executable path and surrounding text can vary. - When finished, return to the test Command Prompt, type
exit, and press Enter. Its process row should disappear from the live list.
If you have several cmd.exe rows, compare their command lines to find the test instance rather than assuming the first one is yours. The test checks both the column configuration and your ability to distinguish processes with the same name. Microsoft documents /k as running the supplied command and then keeping the command interpreter open.
Compare similar processes without stopping them
For each process you want to investigate, read across the same row:
- Name identifies the process by its executable name. Several rows can have the same name.
- PID identifies that running process instance. Record it when you need to match the row to another tool or a support report.
- Command line shows the command-line text associated with that process, which can include an executable name or path and additional arguments.
For example, two processes with the same executable name might have different arguments, helping you distinguish which instance was launched with a particular file or option. The meanings of those options are specific to the application; an unfamiliar argument is not, by itself, evidence of a problem.
A command line is a clue about how the process was launched, not a complete account of everything it has done since. It may not explain which visible window belongs to a process, what files it later opened, or which application started it. Likewise, an executable name or plausible-looking path alone does not prove that a process is safe.
PIDs are temporary. Windows can reuse a PID after a process ends, so a number recorded earlier is not permanent proof of identity. If an application has been closed or restarted, find its current row again and compare the name and command line before acting.
If you can see an app on the Processes page but are unsure which Details row corresponds to it, right-click its entry there and select Go to details when that option is available. Task Manager switches to the corresponding process row, where you can read the PID and command line. For apps with multiple processes, inspect the relevant entries rather than assuming one row describes the entire app.
Read a long command line in PowerShell
If widening the column still makes a long command difficult to read, PowerShell can display the information for a specific PID. This is a read-only query; it does not end the process.
- In Task Manager > Details, note the current PID of the process.
- Open Start, search for Windows PowerShell, and open it.
- Run the following command, replacing
1234with the PID you just observed:
Get-CimInstance -ClassName Win32_Process -Filter 'ProcessId = 1234' |
Format-List Name, ProcessId, CommandLine, CreationDate
- Compare Name and ProcessId with the Task Manager row, then read CommandLine. CreationDate provides another useful detail when checking whether you are looking at the same running instance.
The result is a snapshot, not a continuously updating display. If the process exits before the query runs, there may be no result; if its PID has since been reused, the result may describe a different process. The query may also return limited information for processes your account cannot inspect.
Troubleshoot missing columns or information
- The column selector is missing: Make sure Details is selected, then right-click a heading such as Name, not the body of the list. On Windows 10, select More details first if the compact view is open.
- Command line is checked but not visible: Maximize the window and scroll horizontally across the Details list. Reopen Select columns to confirm that the checkbox is still selected, then widen the heading if the text is truncated.
- The process is missing: Confirm the application is still running. Sort by Name, or return to Processes and use Go to details on the relevant entry if available. A short-lived process can exit before you find it; Task Manager’s Details page is a live view, not a history of every process that ran.
- The PID changed: The application or one of its helper processes may have restarted. Reidentify the current process instead of relying on the old number. A reused PID can later belong to an unrelated process.
- Command line is blank or incomplete for one process: First compare it with an ordinary process you started yourself, such as the verification example above. If that example works, the columns are configured correctly. The other process may not expose the information to your account or may not have a useful command line available. The PowerShell query is an alternative check, but it cannot guarantee access where Windows restricts the information.
- Task Manager is unavailable on a managed PC: Your organization may restrict access. Contact its IT administrator rather than changing security policy or registry settings to bypass the restriction.
Hide the columns again
To return to the earlier view, open Details, right-click a column heading, and select Select columns. Clear Command line and, if you do not want it displayed, PID, then select OK.
Hiding a column only changes the Task Manager display. It does not erase process information or prevent someone with appropriate access from inspecting it through another tool. If you shared a screenshot or saved output during troubleshooting, review that copy separately for sensitive information.