homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Microsoft / Microsoft Windows OS (XP/NT/Vista/Windows 7/8/9/10)
Forum Library, Charter, Moderators: bill

Microsoft Windows OS (XP/NT/Vista/Windows 7/8/9/10) Forum

Disable ALL USB ports

 3:16 pm on Nov 20, 2007 (gmt 0)

I would like to write a script (bat,reg,vbs or whatever) to disable ALL usb ports on a client, not only USB removable drives.

Can you point me in right direction?

Best regards.



 1:54 am on Nov 21, 2007 (gmt 0)

Microsoft has an article on their site: How to disable the use of USB storage devices [support.microsoft.com] that should get you headed in the right direction. A quick perusal of the search engines show a number of other methods to accomplish this.


 12:42 pm on Nov 21, 2007 (gmt 0)


thanks for the reply but as I mentioned

not only USB removable drives.

I would like to disable USB ports also for other use: USB printer, USB keyboard, etc etc...

I cannot find articles about it.



 12:45 pm on Nov 21, 2007 (gmt 0)

Method one
Remove the driver files for those USB ports and replace them with another file of the same name but empty. Restart and cross your fingers.

Method two
Mix three parts epoxy resin with one part hardener, place into the corner of a plastic bag, roll up the other end as if you wanted to do icing, and then snip the tiny corner which should now be full of pressurised hardening resin. Squeeze the bag and position the tip so that resin pushes its way into the USB ports, securely ensuring that they cannot be used for any devices.

Method three
If you are lucky, your ports are not directly soldered to the board but are actually connected by wires. Remove case. Remove the wires from the board or the back of the port. Replace case.


 10:35 am on Nov 23, 2007 (gmt 0)

Can you explain me how to know where USB driver files are in windows xp?

Any help appreciated. Best regards.


 12:49 pm on Nov 23, 2007 (gmt 0)

Rather than using hacks, open the device manager and disable all USB ports, etc.

If this isn't good enough, you can view the device driver files from here and delete them by sneaky means (but if you don't know what you're doing, you'll kill the whole system). I'm not going to explain further.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Microsoft / Microsoft Windows OS (XP/NT/Vista/Windows 7/8/9/10)
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved