Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

What permissions does a user need to read the registry or run wmi queries?

$
0
0

Where I am working now, they believe in the least access rule.

The problem is, they are not sure what access my account needs to do inventories on several remote machines.

And no, they won't make me a member of the administrators group.

So what are the minimum permissions I need to run WMI queries and to read the registry on a remote server?

Right now my scripts get "access denied" when I run the script from my desktop.

I can log on to the machines via Remote Desktop and run the scrip localy.

$SPAdmin = $user
$Password = $Pwd | ConvertTo-SecureString -AsPlainText -Force
$Cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $SPAdmin, $Password 
if (test-connection $computer) {
$OS = gwmi -Class Win32_OperatingSystem -ComputerName $computer -credential $cred }


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>