
批處理怎樣修改注冊表項的權限并刪除該項系統環境win10 64注冊表中有以下項,下面還有多個子項,想一次性刪除,需要先改權限,原權限為trustedinstallerHKEY_LOCAL_MACHINESOFTWAREClassesDirectorybackgroundshellWSL再論壇中搜索,參照secedit的方法,
提示操作成功,但實際權限并沒有更改,請教是怎么回事,謝謝nclick="copycode($('code0'));">復制代碼
- @echo off
- rem 設置HKEY_LOCAL_MACHINESOFTWAREtest的所有者為:Everyone
- >>test.inf echo.[Version]
- >>test.inf echo.Signature = $Chicago$
- >>test.inf echo.
- >>test.inf echo.[Registry Keys]
- >>test.inf echo.MACHINESOFTWAREClassesDirectorybackgroundshellWSL, 0, O:BA
- secedit /configure /db test.sdb /cfg test.inf /log test.log
- pause
- del test.*
- pause

