Solved

Stop USB mass storage device from command line

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
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 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…

729 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