简体   繁体   English

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

[英]How to use batch file to change permissions of registry to remove network from navigation pane

I'd like to change the following registry path's permissions to allow Administrators full control. 我想更改以下注册表路径的权限,以允许管理员完全控制。 The registry path is: 注册表路径为:

HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder

I'd also like to change the value of the DWORD named Attributes inside this registry path to b0940064. 我还想将此注册表路径内名为Attributes的DWORD的值更改为b0940064。 What code would I use for this? 我将为此使用什么代码? Can I use cacls for this? 我可以为此使用cacls吗?

Use SetACL , but after need use it too: DesktopRefresh.exe 使用SetACL ,但在需要后也使用它:DesktopRefresh.exe

Obs: This is super user question Obs:这是超级用户问题

Take a little look here, for 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"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM