无忧启动论坛

标题: 我注册表删除遇到了问题,请大家帮帮我 [打印本页]

作者: 彭俊    时间: 2016-4-15 15:01
标题: 我注册表删除遇到了问题,请大家帮帮我
本帖最后由 彭俊 于 2016-4-19 00:18 编辑


作者: notepad    时间: 2016-4-19 08:49
本帖最后由 notepad 于 2016-4-19 08:53 编辑

需要先获取相应的权限,批处理的话可以使用SetACL,下面的代码仅供参考:
  1. SetACL.exe -on "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell" -ot reg -actn setowner -ownr "n:Everyone" >nul
  2. SetACL.exe -on "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell" -ot reg -actn ace -ace "n:Everyone;p:full" >nul
  3. IF EXIST "%ProgramFiles%\10Config\10Tweak.reg" REGEDIT.exe /s "%ProgramFiles%\10Config\10Tweak.reg"
  4. REG.exe add "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Devices" /t reg_sz /d "Device Manager" /f >nul
  5. REG.exe add "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Devices" /v icon /t reg_sz /d "imageres.dll,-34" /f >nul
  6. 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
  7. REG.exe add "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services" /t reg_sz /d "Services" /f >nul
  8. REG.exe add "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services" /v icon /t reg_sz /d "imageres.dll,-114" /f >nul
  9. 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
  10. SetACL.exe -on "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell" -ot reg -actn ace -ace "n:Everyone;p:delete" >nul
  11. SetACL.exe -on "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell" -ot reg -actn setowner -ownr "n:system" >nul
复制代码





欢迎光临 无忧启动论坛 (http://wuyou.net./) Powered by Discuz! X3.3