无忧启动论坛
标题:
我注册表删除遇到了问题,请大家帮帮我
[打印本页]
作者:
彭俊
时间:
2016-4-15 15:01
标题:
我注册表删除遇到了问题,请大家帮帮我
本帖最后由 彭俊 于 2016-4-19 00:18 编辑
QQ图片20160418235909.png
(88.12 KB, 下载次数: 69)
下载附件
2016-4-19 00:17 上传
作者:
notepad
时间:
2016-4-19 08:49
本帖最后由 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
复制代码
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net./)
Powered by Discuz! X3.3