windows – 禁用USB存储设备
发布时间:2020-12-13 20:39:00 所属栏目:Windows 来源:网络整理
导读:有没有办法以编程方式禁用USB存储设备工作,同时仍然保持USB端口功能为其他类型的设备,如键盘和鼠标? 取自 here,未经测试: Directions for Use:1.) Take the following blue text,copy it,and paste it into a text document. Then,save it as USBSTOR.ADM.
有没有办法以编程方式禁用USB存储设备工作,同时仍然保持USB端口功能为其他类型的设备,如键盘和鼠标?
取自
here,未经测试:
Directions for Use: 1.) Take the following blue text,copy it,and paste it into a text document. Then,save it as USBSTOR.ADM. CLASS MACHINE CATEGORY "Custom Policies" KEYNAME "SYSTEMCurrentControlSetServicesUsbStor" POLICY "USB Mass Storage Installation" EXPLAIN "When this policy is enabled,USB mass storage device permissions can be changed by using the drop down box. Selecting 'Grant Permission' will allow USB mass storage devices to be installed. Selecting 'Deny Permission' will prohibit the installation of USB mass storage devices. IF REMOVING THIS POLICY: Reset to original setting and let policy propegate before deleting policy." PART "Change Settings:" DROPDOWNLIST REQUIRED VALUENAME "Start" ITEMLIST NAME "Grant Permission" VALUE NUMERIC 3 DEFAULT NAME "Deny Permission" VALUE NUMERIC 4 END ITEMLIST END PART END POLICY END CATEGORY 2.) Open a group policy management console (gpedit.msc),and right click on "administrative templates" under "Computer Configuration". Select "Add/Remove Templates". 3.) Browse to the text document you just saved and click OK. You'll now see "Custom Policies" under "Administrative Templates". Right click on it,select "View",then select "Filtering". Uncheck the bottom box,labeled "Only show policy settings that can be fully managed". 4.) Click ok. Now you'll see the USB policy available for use under the custom policy heading. From there,you can enable or disable it just like any other policy. 或(禁用USB存储设备,在XP SP3上测试) REG ADD "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTOR" /v Start /t REG_DWORD /d 4 /f (启用USB存储设备,在XP SP3上测试) REG ADD "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTOR" /v Start /t REG_DWORD /d 3 /f (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 如何从Windows命令提示符获取自己的进程pid
- 如何实现标准的Windows Phone 7 ComboBox替换UI
- windows – 如何防止WiX在修补时删除注册表项
- windows-server-2003 – 移动Windows 2003启动系统分区
- Windows Defender Antivirus从C#扫描[AccessViolation exce
- windows-server-2003 – PDC的选择 – Samba与MS服务器
- windows – 作为服务运行时,QtService应用程序无法连接到系
- windows – 使用WMIC查询本地管理员组成员
- .net – 移动设备上的OutOfMemoryException
- windows – 强制mingw32-make忽略sh
推荐文章
站长推荐
热点阅读