Non-Administrative user need access on Service control manager-SCM

Copper Contributor

While running this command I am getting Access denied error. I need to run this command for a particular user without any admin privileges. Without providing admin access, is there any alternative solution to get the data through this command.


Invoke-Command -ComputerName "-------------" -ScriptBlock{Get-Service} -Credential "Domain\User"


By giving this command I am able to pull the data for the above command (Get-Services), however by running this below command every user gets access to all Services.




My requirement is to provide access only for a single particular ID and get all the services data. Please help me with the solution.


1 Reply
If you don't specify the user/group which should have access by specifying it's SID, then this happens. You can follow this tutorial, hope that works out for you!