现在的位置: 首页 > 综合 > 正文

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

2014年03月11日 ⁄ 综合 ⁄ 共 785字 ⁄ 字号 评论关闭

用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"

抱歉!评论已关闭.