Browse Source

fix occurence of "Administrators"

ref #36
ref #37
pull/41/head
Alex Hirsch 9 years ago
parent
commit
8ab363a918
  1. 2
      lib/take-own.psm1

2
lib/take-own.psm1

@ -27,7 +27,7 @@ function Takeown-Registry($key) {
# set FullControl
$acl = $key.GetAccessControl()
$rule = New-Object System.Security.AccessControl.RegistryAccessRule("Administrators", "FullControl", "Allow")
$rule = New-Object System.Security.AccessControl.RegistryAccessRule($admins, "FullControl", "Allow")
$acl.SetAccessRule($rule)
$key.SetAccessControl($acl)
}

Loading…
Cancel
Save