系统环境win10 64
注册表中有以下项,下面还有多个子项,想一次性删除,需要先改权限,原权限为trustedinstaller
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\WSL
再论坛中搜索,参照secedit的方法,- @echo off
- rem 设置"HKEY_LOCAL_MACHINE\SOFTWARE\test"的所有者为:Everyone
- >>test.inf echo.[Version]
- >>test.inf echo.Signature = "$Chicago$"
- >>test.inf echo.
- >>test.inf echo.[Registry Keys]
- >>test.inf echo."MACHINE\SOFTWARE\Classes\Directory\background\shell\WSL", 0, "O:BA"
- secedit /configure /db test.sdb /cfg test.inf /log test.log
- pause
- del test.*
- pause
复制代码 提示操作成功,但实际权限并没有更改,请教是怎么回事,谢谢 |