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={$_.Get Owner().Us er}}
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'
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The Win32_Process class is in the "root/cimv2" namespace.
Information given on needed permissions, and how to change them if desired.
ASKER
Thanks a lot!