How to use a group policy to disable USB in the domain controller (1)

Source: Internet
Author: User
Tags gfi languard

Windows 2003Domain ControllerUseGroup PolicyThe following describes how to disable USB:

1. Disable the usb registry directly.

Go

 
 
  1. HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/USBSTOR   

There is a key value named start on the right.

Double-click it and change the value to 4 usb to disable it.

You only need to change 4 to 3 for the next recovery.

Ii. Indirect Method

Copy the content in the lower slash to a text document and save it. ADM file, then open the OU group policy you want to restrict, expand "user configuration, manage template", right-click the management template, add/delete template, import the saved ADM file! Now all users under this OU cannot use USB storage devices! Third-party software GFI LANGuard Portable Storage Control. v2.0 can also be used in the domain environment ).

//////////////////////////////////////// //////////////

 
 
  1. CLASS USER
  2.  
  3. CATEGORY !! ADMDesc
  4.  
  5. POLICY !! MMC_DeviceManagerX
  6.  
  7. KEYNAME "Software/Policies/Microsoft/MMC/{90087284-d6d6-11d0-8353-00a0c90640bf }"
  8.  
  9. # If version> = 4
  10.  
  11. SUPPORTED !! SUPPORTED_Win2k
  12.  
  13. # Endif
  14.  
  15. EXPLAIN !! MMC_Restrict_Explain
  16.  
  17. ValueNAME "Restrict_Run"
  18.  
  19. ValueON NUMERIC 0
  20.  
  21. ValueOFF NUMERIC 1
  22.  
  23. END POLICY
  24.  
  25. POLICY !! MMC_DeviceManager
  26.  
  27. KEYNAME "Software/Policies/Microsoft/MMC/{74246bfc-4c96-11d0-abef-0020af6b0b7a }"
  28.  
  29. # If version> = 4
  30.  
  31. SUPPORTED !! SUPPORTED_Win2k
  32.  
  33. # Endif
  34.  
  35. EXPLAIN !! DEVMGR_Restrict_Explain
  36.  
  37. ValueNAME "Restrict_Run"
  38.  
  39. ValueON NUMERIC 0
  40.  
  41. ValueOFF NUMERIC 1
  42.  
  43. END POLICY
  44.  
  45. End CATEGORY
  46.  
  47. CLASS MACHINE
  48.  
  49. CATEGORY !! ADMDesc
  50.  
  51. POLICY !! USB_UHCD_PARAMS
  52.  
  53. KEYNAME "SYSTEM/CurrentControlSet/Services/uhcd"
  54.  
  55. EXPLAIN !! STARTUPTYPE_HELP
  56.  
  57. PART !! STARTUPTYPE NUMERIC REQUIRED
  58.  
  59. ValueNAME "START"
  60.  
  61. MIN 3 MAX 4 DEFAULT 3
  62.  
  63. END PART
  64.  
  65. END POLICY
  66.  
  67. POLICY !! USB_UHCI_PARAMS
  68.  
  69. KEYNAME "SYSTEM/CurrentControlSet/Services/usbuhci"
  70.  
  71. EXPLAIN !! STARTUPTYPE_HELP
  72.  
  73. PART !! STARTUPTYPE NUMERIC REQUIRED
  74.  
  75. ValueNAME "START"
  76.  
  77. MIN 3 MAX 4 DEFAULT 3
  78.  
  79. END PART
  80.  
  81. END POLICY
  82.  
  83. POLICY !! USB_EHCI_PARAMS
  84.  
  85. KEYNAME "SYSTEM/CurrentControlSet/Services/usbehci"
  86.  
  87. EXPLAIN !! STARTUPTYPE_HELP
  88.  
  89. PART !! STARTUPTYPE NUMERIC REQUIRED
  90.  
  91. ValueNAME "START"
  92.  
  93. MIN 3 MAX 4 DEFAULT 3
  94.  
  95. END PART
  96.  
  97. END POLICY
  98.  
  99. POLICY !! USB_HUB
  100.  
  101. KEYNAME "SYSTEM/CurrentControlSet/Services/usbhub"
  102.  
  103. EXPLAIN !! STARTUPTYPE_HELP
  104.  
  105. PART !! STARTUPTYPE NUMERIC REQUIRED
  106.  
  107. ValueNAME "START"
  108.  
  109. MIN 3 MAX 4 DEFAULT 3
  110.  
  111. END PART
  112.  
  113. END POLICY
  114.  
  115. POLICY !! CD_ROM
  116.  
  117. KEYNAME "SYSTEM/CurrentControlSet/Services/cdrom"
  118.  
  119. EXPLAIN !! STARTUPTYPE_HELP
  120.  
  121. PART !! STARTUPTYPE NUMERIC REQUIRED
  122.  
  123. ValueNAME "START"
  124.  
  125. MIN 3 MAX 4 DEFAULT 3
  126.  
  127. END PART
  128.  
  129. END POLICY
  130.  
  131. POLICY !! Floppy_Disk
  132.  
  133. KEYNAME "SYSTEM/CurrentControlSet/Services/flpydisk"
  134.  
  135. EXPLAIN !! STARTUPTYPE_HELP
  136.  
  137. PART !! STARTUPTYPE NUMERIC REQUIRED
  138.  
  139. ValueNAME "START"
  140.  
  141. MIN 3 MAX 4 DEFAULT 3
  142.  
  143. END PART
  144.  
  145. END POLICY
  146.  
  147. End CATEGORY
  148.  
  149. [Strings]
  150.  
  151. ADMDesc = "custom policy"
  152.  
  153. MMC_DeviceManagerX = "Device Manager extension"
  154.  
  155. MMC_DeviceManager = "Device Manager"
  156.  
  157. SUPPORTED_Win2k = "at least Microsoft Windows 2000"
  158.  
  159. MMC_Restrict_Explain = "Disable -- Disable the Device Manager extension; Enable -- Enable the Device Manager extension"
  160.  
  161. DEVMGR_Restrict_Explain = "Disable -- Disable the Device Manager; Enable -- Enable the Device Manager"
  162.  
  163. USB_UHCD_PARAMS = "USB universal master controller drive"
  164.  
  165. STARTUPTYPE_HELP = "Startup type, 3-manual, 4-Disabled"
  166.  
  167. STARTUPTYPE = "Startup Type"
  168.  
  169. USB_EHCI_PARAMS = "Microsoft USB 2.0 Enhanced Host Controller Miniport Driver"
  170.  
  171. USB_UHCI_PARAMS = "Microsoft USB Universal Host Controller Miniport Driver"
  172.  
  173. USB_HUB = "Microsoft USB Standard Hub Driver"
  174.  
  175. CD_ROM = "Optical Drive"
  176.  
  177. Floppy_Disk = "soft drive"
  178.  

//////////////////////////////////////// //////////////////


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.