Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Stop USB mass storage device from command line

Posted on 2004-03-31
2
Medium Priority
?
581 Views
Last Modified: 2007-12-19
Hi,
do somebody know how to stop USB mass storage device from command line (.bat file) in Win2000. (like click on usb icon in system tray). I did try with rundll32.exe usbui.dll, ........, but it does not work.
Thanks.
0
Comment
Question by:paly
2 Comments
 
LVL 8

Accepted Solution

by:
anil_u earned 500 total points
ID: 10744078
Hey, have you tried the DEVCON.exe tool from microsoft, its a free tool which might be what your looking for.

http://support.microsoft.com/?kbid=311272

once downloaded, copy to a folder, then go to that folder from teh coomand prompt and try the following command lines

devcon find usb\*
devcon remove @usb\*

The first will find all the usb devices and the second will remove all, replace the * in the second with the hardware ID.

Hope I could help


0
 
LVL 1

Expert Comment

by:fabi2004
ID: 11709819
Hello,

I have d/loaded the devcon tool.  I'm trying to get a .bat file created for interactively logged on users to kill the usb.  Can anyone help me with the "correct" syntax to be used?  Also, I'm still trying to find confirmation if the devon tool has to be installed on each machine that I want to disable the usb on or if it can be installed on a central server and the script run from there?  

Thanks for your time
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question