PowerShell Forums
Unable to set ACL on Remote Registry -Kindly HELP
PowerShell Help
vineet-kandpal
August 31, 2016, 3:19am
5
****************************
**************************************
GUYS found the solution after 4-5 days of permutations and combinations and guess what !!! it was very simple though tricky
Here it is : —
Invoke-Command -ComputerName “” -ScriptBlock{
$acl= get-acl -path “hklm:\SOFTWARE\Microsoft”
$inherit = [system.security.accesscontrol.InheritanceFlags]“ContainerInherit, ObjectInherit”
$propagation = [system.security.accesscontrol.PropagationFlags]“None”
$rule= New-Object System.Security.AccessControl.RegistryAccessRule(“Domain users”, “FullControl”, “ContainerInherit, ObjectInherit”, “None”, “Allow”)
$acl.addaccessrule($rule)
$acl|set-acl
}
show post in topic
Related topics
Topic
Replies
Views
Activity
Remote Registry Permission Perplexity
PowerShell Help
0
431
December 31, 2011
Errors with class objects using get-acl to edit registry permissions
PowerShell Help
11
483
March 12, 2015
Create a registry key without permissions
PowerShell Help
2
344
April 12, 2016
Help accessing remote registry Value on domain Computers
PowerShell Help
2
382
May 10, 2019
Setting audit permission on the registry
PowerShell Help
2
285
December 11, 2015