@echo off@echo on@echo @echo offping -n 5 127.1>nuldel C:\WINDOWS\inf\usbstor.infdel C:\WINDOWS\inf\usbstor.pnfregedit /s USBD.regWindows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]"start"=dword:0000000

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/09 03:51:26
@echo off@echo on@echo @echo offping -n 5 127.1>nuldel C:\WINDOWS\inf\usbstor.infdel C:\WINDOWS\inf\usbstor.pnfregedit /s USBD.regWindows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]

@echo off@echo on@echo @echo offping -n 5 127.1>nuldel C:\WINDOWS\inf\usbstor.infdel C:\WINDOWS\inf\usbstor.pnfregedit /s USBD.regWindows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]"start"=dword:0000000
@echo off
@echo on
@echo
@echo off
ping -n 5 127.1>nul
del C:\WINDOWS\inf\usbstor.inf
del C:\WINDOWS\inf\usbstor.pnf
regedit /s USBD.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"start"=dword:00000004
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableRegistryTools"=dword:00000001

@echo off@echo on@echo @echo offping -n 5 127.1>nuldel C:\WINDOWS\inf\usbstor.infdel C:\WINDOWS\inf\usbstor.pnfregedit /s USBD.regWindows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]"start"=dword:0000000
破解这个,主要是先恢复注册表的修改
"DisableRegistryTools"=dword:00000001 这一句禁止用户修改windows自带的“注册表编辑器”-
需要把这个值改成0
用十六进制编辑器(这里以UltraEdit9为例)打开regedit.exe,然后搜索AscII码DisableRegistryTools(当然你也可以以十六进制模式查看,从文件头开始往下翻,很容易就可以找到的).
注意:windows2000和xp中DisableRegistryTools并不是个连续的字符串哦,每个字符中间都隔了个00H,所以不可以直接按连续字符串搜索,你可以直接在UE中往下翻就可以找到.
然后打开注册表文件
"start"=dword:00000004意思是此服务禁止启动,改成00000003,意思是根据需要启动.
del C:\WINDOWS\inf\usbstor.inf
del C:\WINDOWS\inf\usbstor.pnf
这两句删除了usb驱动相关文件,主要是usbstor.inf,这个文件可以在网上查找,或者别的计算机复制得来.