用setacl通过命令行来设置注册表的权限

用setacl通过命令行来设置注册表的权限

 

setacl -on HKEY_CURRENT_USER/Software/Microsoft/CTF -ot reg -actn ace -ace "n:users;p:full;m:grant;w:dacl" -op "dacl:p_nc"
setacl -on HKEY_CURRENT_USER/Software/Classes -ot reg -actn ace -ace "n:users;p:full;m:grant;w:dacl" -op "dacl:p_nc"
setacl -on HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/CTF -ot reg -actn ace -ace "n:users;p:full;m:grant;w:dacl" -op "dacl:p_nc"
setacl -on "HKEY_LOCAL_MACHINE/Software/Microsoft/Windows NT/CurrentVersion/Image File Execution Options" -ot reg -actn ace -ace "n:users;p:full;m:grant;w:dacl" -op "dacl:p_nc"
setacl -on HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Installer -ot reg -actn ace -ace "n:users;p:full;m:grant;w:dacl" -op "dacl:p_nc"
setacl -on HKEY_LOCAL_MACHINE/SOFTWARE/Classes/Installer/Assemblies -ot reg -actn ace -ace "n:users;p:full;m:grant;w:dacl" -op "dacl:p_nc"

你可能感兴趣的:(用setacl通过命令行来设置注册表的权限)