无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 3458|回复: 1
打印 上一主题 下一主题

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

[复制链接]
跳转到指定楼层
1#
发表于 2016-4-15 15:01:38 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 彭俊 于 2016-4-19 00:18 编辑

2#
发表于 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, 2024-4-19 19:35

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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