Solved

Stop USB mass storage device from command line

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
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…

615 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