Score:0

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

mx flag

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.

sc sdset SCMANAGER D:(A;;CCLCRPRC;;;AU)(A;;CCLCRPWPRC;;;SY)(A;;KA;;;BA)S:(AU;FA;KA;;;WD)(AU;OIIOFA;GA;;;WD)

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

ThankYou.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.