![](/img/trans.png)
[英]Batch file automating Windows HKCU Registry permissions using (SetACL)
[英]How to use batch file to change permissions of registry to remove network from navigation pane
我想更改以下注册表路径的权限,以允许管理员完全控制。 注册表路径为:
HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder
我还想将此注册表路径内名为Attributes的DWORD的值更改为b0940064。 我将为此使用什么代码? 我可以为此使用cacls吗?
使用SetACL ,但在需要后也使用它:DesktopRefresh.exe
Obs:这是超级用户问题
看一下这里,获取关键值
SetACL.exe -on "HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" -ot reg -actn setowner -ownr n:Administrators
SetACL.exe -on "HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" -ot reg -actn ace -ace "n:Administrators;p:full"
reg import "%path_to_file%\rey_with_value_to_change.reg"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.