Disable/Enable USB Port Without Any External Tools

0

To prevent users from connecting to USB storage devices, use one or more of the following procedures, as appropriate for your situation.

If a USB storage device is not already installed on the computer

If a USB storage device is not already installed on the computer, assign the user or the group and the local SYSTEM account Deny permissions to the following files:

  • %SystemRoot%InfUsbstor.pnf
  • %SystemRoot%InfUsbstor.inf

When you do this, users cannot install a USB storage device on the computer. To assign a user or group Deny permissions to the Usbstor.pnf and Usbstor.inf files, follow these steps:

  1. Start Windows Explorer, and then locate the %SystemRoot%Inf folder.
  2. Right-click the Usbstor.pnf file, and then click Properties.
  3. Click the Security tab.
  4. In the Group or user names list, add the user or group that you want to set Deny permissions for.
  5. In the Permissions for UserName or GroupName list, click to select the Deny check box next to Full Control.

Note Also add the System account to the Deny list.

  1. In the Group or user names list, select the SYSTEM account.
  2. In the Permissions for UserName or GroupName list, click to select the Deny check box next to Full Control, and then click OK.
  3. Right-click the Usbstor.inf file, and then click Properties.
  4. Click the Security tab.
  5. In the Group or user names list, add the user or group that you want to set Deny permissions for.
  6. In the Permissions for UserName or GroupName list, click to select the Deny check box next to Full Control.
  7. In the Group or user names list, select the SYSTEM account.
  8. In the Permissions for UserName or GroupName list, click to select the Deny check box next to Full Control, and then click OK.

If a USB storage device is already installed on the computer

If a USB storage device is already installed on the computer, you can change the registry to make sure that the device does not work when the user connects to the computer

If a USB storage device is already installed on the computer, set the Start value in the following registry key to 4:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUsbStor

When you do this, the USB storage device does not work when the user connects the device to the computer. To set the Start value, follow these steps:

  1. Click Start, and then click Run.
  2. In the Open box, type regedit, and then click OK.
  3. Locate and then click the following registry key:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUsbStor

  1. In the details pane, double-click Start.
  2. In the Value data box, type 4, click Hexadecimal (if it is not already selected), and then click OK.
  3. Exit Registry Editor.

just leave a comment or mail me at [email protected] if you have any feedback on this post.

LEAVE A REPLY

Please enter your comment!
Please enter your name here