Solved

Stop USB mass storage device from command line

Posted on 2004-03-31
2
510 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 125 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Hi, I've made you some graphics for a better understanding how RAID works. First of all, there are two ways a raid can be generated: - By hardware - By software What does that mean? This means: If you have a hardware RAID controller, there…
We all have limited time to study long and complicated information about RAID theories, but you may be interested as to how RAID 5 works. We made it simple for you by providing the shortest and easiest explanation ever.   First we need to remind …
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 …
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now