Link to home
Start Free TrialLog in
Avatar of Vivian_Shi
Vivian_Shi

asked on

Minimal permission required to run a Get-WmiObject command

Hello,

I would like to set a job to run below script by a service ID, to extract users information from remote servers, may I ask if someone knows the minimal permission required?
We don't want to grant the service ID admin permission on all the servers.

Thanks so much in advance for your help!

Get-WmiObject win32_process -computer RemoteServerName | where{$_.Processid -eq 'remote_process_id'} | Select-Object processid,name,@{n='Owner';e={$_.GetOwner().User}}
ASKER CERTIFIED SOLUTION
Avatar of footech
footech
Flag of United States of America 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
Avatar of Vivian_Shi
Vivian_Shi

ASKER

Thanks for your advise! May I ask which namespaces I need to grant permission to the users?  For the particular script.
Thanks a lot!
The Win32_Process class is in the "root/cimv2" namespace.
Information given on needed permissions, and how to change them if desired.