Monday, 8 September 2014

Appsense Permissions for Flip2Temp

The following script set the required permission for users to delete their own profiles.

$acl = Get-Acl “HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList”
$rule = New-Object System.Security.AccessControl.RegistryAccessRule ("ADDomain\Domain Users","FullControl","ContainerInherit","none","Allow")
$acl.SetAccessRule($rule)


$acl |Set-Acl -Path “HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList”

No comments:

Post a Comment