Solved

Stop USB mass storage device from command line

Posted on 2004-03-31
2
523 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

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.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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…

730 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