Need some help changing ACL for child reg keys

Hello,

I need to change ACL for a regkey and its child reg keys but having some trouble. this is what i have so far

$acl1 =Get-ChildItem -Path “HKLM:SOFTWAREWOW6432Nodesomeapplication”

Get-Acl $acl1

$rule1 = New-Object System.Security.AccessControl.RegistryAccessRule (“.Users”,”FullControl”,”Allow”)

$acl1.SetAccessRule($rule1)

$acl1 |Set-Acl -Path “HKLM:SOFTWAREWOW6432Nodesomeapplication”

submitted by /u/genjix1
[link] [comments]

Leave a Reply