The Processes tab of the Windows Task Manager shows several columns with information, one of which being User Name of the user that owns the process.
Using the command WMIC process (from an administrator-started cmd.exe) gives me the same sort of information, but I can not find any column for the user name. How can I find out which user started the process with WMIC?
The Processes tab of the Windows Task Manager shows several columns with information, one
Share
Owner can be retrieved using GetOwner method on win32_process class instances.
I would suggest using PowerShell for that, where it’s pretty simple:
If you have to use wmic, than you can hack your way through by mixing results of:
…with
call GetOwnere.g: