USB口给禁了,在网管电脑里找到一个批处理文件,求高手们解释一下
USB口给禁了,只能用USB的鼠标跟键盘,其它USB设备就不能用了,在网管电脑里找到一个批处理文件,求高手们解释一下REMThisbatchfileisusedtodis...
USB口给禁了,只能用USB的鼠标跟键盘,其它USB设备就不能用了,在网管电脑里找到一个批处理文件,求高手们解释一下
REM This batch file is used to disable USB storage
ren %windir%\inf\UsbStor.inf UsbStor.inf.backup
ren %windir%\inf\UsbStor.pnf UsbStor.pnf.backup
reg update HKLM\system\CurrentControlSet\Services\USBSTOR\start=4
reg update HKLM\system\CurrentControlSet\Services\CdRom\AutoRun=0
net send %computername% "The USB port was unlocked, please reboot the machine to make it effective. And the guest account was disabled in the same time"
是不是把里里面的“4”改为“2”就可以解禁了? 展开
REM This batch file is used to disable USB storage
ren %windir%\inf\UsbStor.inf UsbStor.inf.backup
ren %windir%\inf\UsbStor.pnf UsbStor.pnf.backup
reg update HKLM\system\CurrentControlSet\Services\USBSTOR\start=4
reg update HKLM\system\CurrentControlSet\Services\CdRom\AutoRun=0
net send %computername% "The USB port was unlocked, please reboot the machine to make it effective. And the guest account was disabled in the same time"
是不是把里里面的“4”改为“2”就可以解禁了? 展开
2个回答
展开全部
REM This batch file is used to disable USB storage :: 注释 本批处理用于禁用usb存储设备
ren %windir%\inf\UsbStor.inf UsbStor.inf.backup :: 将%windir%\inf\UsbStor.inf 重命名为 usbstor.inf.backup
ren %windir%\inf\UsbStor.pnf UsbStor.pnf.backup :: 同上
reg update HKLM\system\CurrentControlSet\Services\USBSTOR\start=4 ::更改注册表键值,禁用usb存储设备
reg update HKLM\system\CurrentControlSet\Services\CdRom\AutoRun=0 :: 更改注册表键值 禁用cdrom的自动播放功能
net send %computername% "The USB port was unlocked, please reboot the machine to make it effective. And the guest account was disabled in the same time"
:: 发送信息给 %computername% 账户,信息内容为:”usb 端口已经解除锁定,请重启机器使生效,同时来宾账户被禁用“,解除锁定这句估计是写错了
ren %windir%\inf\UsbStor.inf UsbStor.inf.backup :: 将%windir%\inf\UsbStor.inf 重命名为 usbstor.inf.backup
ren %windir%\inf\UsbStor.pnf UsbStor.pnf.backup :: 同上
reg update HKLM\system\CurrentControlSet\Services\USBSTOR\start=4 ::更改注册表键值,禁用usb存储设备
reg update HKLM\system\CurrentControlSet\Services\CdRom\AutoRun=0 :: 更改注册表键值 禁用cdrom的自动播放功能
net send %computername% "The USB port was unlocked, please reboot the machine to make it effective. And the guest account was disabled in the same time"
:: 发送信息给 %computername% 账户,信息内容为:”usb 端口已经解除锁定,请重启机器使生效,同时来宾账户被禁用“,解除锁定这句估计是写错了
追问
这个批处理文件是在网管的电脑里找到的,文件名也请为“disable usb”用记事本打开就是显示以上内容,请问如何解除USB禁用设定?
追答
ren %windir%\inf\UsbStor.inf.backup UsbStor.inf
ren %windir%\inf\UsbStor.pnf.backup UsbStor.pnf
reg update HKLM\system\CurrentControlSet\Services\USBSTOR\start=3
::保存为批处理,运行 然后重启就行了。
上海国想
2024-12-02 广告
2024-12-02 广告
如果云服务器中了勒索病毒,上海国想科技发展有限公司应立即采取以下措施:首先,隔离受感染的服务器,避免病毒扩散。其次,利用安全软件扫描系统,终止与勒索病毒相关的进程,并备份所有重要数据,确保数据离线存储。同时,及时联系网络安全专家,获取建议和...
点击进入详情页
本回答由上海国想提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询