Vivian_Shi
asked on
Get remote process user without administrator permission.
Hello,
I would like to use a script to query the processes on the server, based on the process id and returns the user name. I tried following four methods and they all only work with administrator permission. Without admin permission, they will not return the user name. May I ask if any method to return the user name, without server admin permission? Thanks so much in advance!
get-process -id 12856 | select-object id,name,@{n='Owner';e={$ow ner}}
Get-Process -Id 12856 -IncludeUserName | Select-Object -Property UserName
tasklist.exe /v /fi "PID eq 12856"
QUERY PROCESS 12856
I would like to use a script to query the processes on the server, based on the process id and returns the user name. I tried following four methods and they all only work with administrator permission. Without admin permission, they will not return the user name. May I ask if any method to return the user name, without server admin permission? Thanks so much in advance!
get-process -id 12856 | select-object id,name,@{n='Owner';e={$ow
Get-Process -Id 12856 -IncludeUserName | Select-Object -Property UserName
tasklist.exe /v /fi "PID eq 12856"
QUERY PROCESS 12856
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER