如何使用批处理文件更改注册表权限以从导航窗格中删除网络

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:我是超级用户question

这里稍微看一下,key value

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"