Fix regedit access rights
This commit is contained in:
parent
2a6829af09
commit
ee89445da6
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class Context {
|
||||||
|
|
||||||
$acl.AddAccessRule(
|
$acl.AddAccessRule(
|
||||||
[System.Security.AccessControl.RegistryAccessRule]::new(
|
[System.Security.AccessControl.RegistryAccessRule]::new(
|
||||||
[System.Security.Principal.SecurityIdentifier]::new([System.Security.Principal.WellKnownSidType]::AuthenticatedUserSid, $null),
|
[System.Security.Principal.SecurityIdentifier]::new([System.Security.Principal.WellKnownSidType]::BuiltinUsersSid, $null),
|
||||||
[System.Security.AccessControl.RegistryRights]::FullControl,
|
[System.Security.AccessControl.RegistryRights]::FullControl,
|
||||||
[System.Security.AccessControl.InheritanceFlags]::ObjectInherit -bor [System.Security.AccessControl.InheritanceFlags]::ContainerInherit,
|
[System.Security.AccessControl.InheritanceFlags]::ObjectInherit -bor [System.Security.AccessControl.InheritanceFlags]::ContainerInherit,
|
||||||
[System.Security.AccessControl.PropagationFlags]::None,
|
[System.Security.AccessControl.PropagationFlags]::None,
|
||||||
|
|
Loading…
Reference in a new issue