Link to home
Start Free TrialLog in
Avatar of Vivian_Shi
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={$owner}}

Get-Process -Id 12856 -IncludeUserName | Select-Object -Property UserName

tasklist.exe /v /fi "PID eq 12856"

QUERY PROCESS 12856
ASKER CERTIFIED SOLUTION
Avatar of rastoi
rastoi
Flag of Slovakia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Vivian_Shi
Vivian_Shi

ASKER

Thanks a lot for your insights!