Can Mallory see my command line options on recent versions of Windows? (Google is not helping here)

Mallory is a non-administrator user on server X, as am I. I run foo.exe -x=s3cr3t

Can Mallory see -x=s3cr3t on say Windows 7, 8 or 10?

I ask because when using Process Explorer, as a non-admin user, I seem to be able to see command line options for System user processes. A SuperUser user claims the that they cannot see them, though they are Windows 10 and I am on Windows 7

1 Answer 1


I cannot confirm this ability in Windows 10, however it is possible in Win 7,8. Not only is it possible with Process Explorer, but also in Task Manager, and via command prompt with WMIC.

From superuser.com:

Open task manager (by CTRL-SHIFT-ESC, CTRL-ALT-DELETE or any other method).

For Windows 7 (and probably Windows XP):

Go to "Processes" tab. The on the "View" menu, select "Select Columns...". Check the checkbox of "Command Line" and click OK. (You may have to scroll down to find it) For Windows 8:

Go to "Details" tab. Right-click on any of the columns (eg. Names, PID etc.) and select "Select columns". Check the checkbox of "Command Line" and click OK. (You may have to scroll down to find it) A column of Command lines of will be added to the currently displayed columns.


You can do it without Process Explorer, too, using Windows' WMI service. Run the following from the command prompt:

WMIC path win32_process get Caption,Processid,Commandline

  • your source doesn't show whether user A can see user B's command line options though... Commented Sep 29, 2016 at 21:36
  • In fact this is a demonstration that it works across a user; WMIC calls the WMI service which runs a as a different user.
    – Joshua
    Commented Nov 10, 2021 at 20:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .