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
1
417
May 16, 2024
Errors with class objects using get-acl to edit registry permissions
PowerShell Help
12
418
May 16, 2024
Create a registry key without permissions
PowerShell Help
3
321
May 16, 2024
Help accessing remote registry Value on domain Computers
PowerShell Help
3
364
May 16, 2024
Setting audit permission on the registry
PowerShell Help
3
260
May 16, 2024