USB口给禁了,在网管电脑里找到一个批处理文件,求高手们解释一下

[复制链接]
查看11 | 回复2 | 2011-5-4 08:20:57 | 显示全部楼层 |阅读模式
USB口给禁了,只能用USB的鼠标跟键盘,其它USB设备就不能用了,在网管电脑里找到一个批处理文件,求高手们解释一下
REMThisbatchfileisusedtodisableUSBstorage

ren%windir%\\inf\\UsbStor.infUsbStor.inf.backup

ren%windir%\\inf\\UsbStor.pnfUsbStor.pnf.backup

regupdateHKLM\\system\\CurrentControlSet\\Services\\USBSTOR\\start=4

regupdateHKLM\\system\\CurrentControlSet\\Services\\CdRom\\AutoRun=0

netsend%computername%\"TheUSBportwasunlocked,pleaserebootthemachinetomakeiteffective.Andtheguestaccountwasdisabledinthesametime\"

是不是把里里面的“4”改为“2”就可以解禁了?
回复

使用道具 举报

千问 | 2011-5-4 08:20:57 | 显示全部楼层
REMThisbatchfileisusedtodisableUSBstorage::注释本批处理用于禁用usb存储设备

ren%windir%\\inf\\UsbStor.infUsbStor.inf.backup::将%windir%\\inf\\UsbStor.inf重命名为usbstor.inf.backup

ren%windir%\\inf\\UsbStor.pnfUsbStor.pnf.backup::同上

regupdateHKLM\\system\\CurrentControlSet\\Services\\USBSTOR\\start=4::更改注册表键值,禁用usb存储设备

regupdateHKLM\\system\\CurrentControlSet\\Services\\CdRom\\AutoRun=0::更改注册表键值禁用cdrom的自动播放功能

netsend%computername%\"TheUSBportwasunlocked,pleaserebootthemachinetomakeiteffective.Andtheguestaccountwasdisabledinthesametime\"
::发送信息给%computername%账户,信息内容为:”usb端口已经解除锁定,请重启机器使生效,同时来宾账户被禁用“,解除锁定这句估计是写错了









<h4class=\"ask\">追问


这个批处理文件是在网管的电脑里找到的,文件名也请为“disableusb”用记事本打开就是显示以上内容,请问如何解除USB禁用设定?
回复

使用道具 举报

千问 | 2011-5-4 08:20:57 | 显示全部楼层
ren%windir%\\inf\\UsbStor.inf.backupUsbStor.inf

ren%windir%\\inf\\UsbStor.pnf.backupUsbStor.pnf

regupdateHKLM\\system\\CurrentControlSet\\Services\\USBSTOR\\start=3
::保存为批处理,运行然后重启就行了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行