Change the permission on registry key

Change the permission on registry key

This powershell script change the permissions on registry key.
###

$acl = Get-Acl "HKLM:\SOFTWARE\WOW6432Node\iMD Soft"
$rule = New-Object System.Security.AccessControl.RegistryAccessRule ("eproclab2\~UserName", "fullcontrol",@("ObjectInherit","ContainerInherit"),"None","Allow")  
$acl.SetAccessRule($rule)
$acl |Set-Acl -Path "HKLM:\SOFTWARE\WOW6432Node\iMD Soft"

###

Before runing this command you need to change the: 
1.    Get-Acl "HKLM:\SOFTWARE\WOW6432Node\iMD Soft" to your path.
2.    Set-Acl -Path "HKLM:\SOFTWARE\WOW6432Node\iMD Soft" to your path.
3.    The domain name "eproclab2" to your domain.

To download the command click here.
Once downlod complete, import it throw the import option in the Custom command section.

For any additional information, please contact support@eprocsolutions.com