![](/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.