|
本帖最后由 notepad 于 2016-4-19 08:53 编辑
需要先获取相应的权限,批处理的话可以使用SetACL,下面的代码仅供参考:
- SetACL.exe -on "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell" -ot reg -actn setowner -ownr "n:Everyone" >nul
- SetACL.exe -on "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell" -ot reg -actn ace -ace "n:Everyone;p:full" >nul
- IF EXIST "%ProgramFiles%\10Config\10Tweak.reg" REGEDIT.exe /s "%ProgramFiles%\10Config\10Tweak.reg"
- REG.exe add "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Devices" /t reg_sz /d "Device Manager" /f >nul
- REG.exe add "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Devices" /v icon /t reg_sz /d "imageres.dll,-34" /f >nul
- REG.exe add "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Devices\command" /t reg_sz /d "%Windir%\System32\mmc.exe /s %Windir%\System32\devmgmt.msc /s" /f >nul
- REG.exe add "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services" /t reg_sz /d "Services" /f >nul
- REG.exe add "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services" /v icon /t reg_sz /d "imageres.dll,-114" /f >nul
- REG.exe add "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services\command" /t reg_sz /d "%Windir%\System32\mmc.exe /s %Windir%\System32\Services.msc /s" /f >nul
- SetACL.exe -on "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell" -ot reg -actn ace -ace "n:Everyone;p:delete" >nul
- SetACL.exe -on "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell" -ot reg -actn setowner -ownr "n:system" >nul
复制代码 |
|