Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Fixing permissions in/for RemoteRegistry

$
0
0

Hey, 

I'm coming from Don and Jeff's forum, having started the following thread; http://powershell.com/cs/forums/p/10682/18220.aspx#18220.

What I was told I could find out here (I couldn't figure out if your book says how to), is how to make sure a service account has permission for Registry Access.

I've run the scripts mentioned in the above linked thread on one of the affected machines, and I now get the following error:

Exception calling "OpenSubKey" with "1" argument(s): "Requested registry access is not allowed."

At D:\BuildAgent1\work\258901fb33d028e9\SrvrProbeCmdLets.psm1:139 char:32

+             $regKey = $regKey.OpenSubKey <<<< ("SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall")

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : DotNetMethodException

I'm playing around with Get-Acl and Set-Acl, trying to understand how they work (I suspect they're what I should use to make the account have access).

What I'm asking for are any hints/tips/experiences/things I can look up in your book to understand how this works, and how to hinder it happen again.

Much Appreciated,
-x10 


Viewing all articles
Browse latest Browse all 10624

Trending Articles