无忧启动论坛

 找回密码
 注册
搜索

我注册表删除遇到了问题,请大家帮帮我

查看数: 4069 | 评论数: 1 | 收藏 1
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2016-4-15 15:01

正文摘要:

本帖最后由 彭俊 于 2016-4-19 00:18 编辑

回复

notepad 发表于 2016-4-19 08:49:25
本帖最后由 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
复制代码

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-2-17 16:55

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表