Can I do this with a script or batch file?

  • Thread starter Thread starter Grey
  • Start date Start date
G

Grey

Supposing I have a number of identical laptops running XP SP2 and I want to
disable the CD ROM or some other device in Device Manager. Is there a way I
can create and run a script which I can run from each machine to do this for
me to same a great deal of time and mouse clicking?

Graham
 
It may be of interest to note that "Grey said:
Supposing I have a number of identical laptops running XP SP2 and I want
to
disable the CD ROM or some other device in Device Manager. Is there a way
I
can create and run a script which I can run from each machine to do this
for
me to same a great deal of time and mouse clicking?

Graham

You could do it with 'devcon' (download link halfway down the page)

http://support.microsoft.com/kb/311272/
 
Grey said:
Supposing I have a number of identical laptops running XP SP2 and I want to
disable the CD ROM or some other device in Device Manager. Is there a way I
can create and run a script which I can run from each machine to do this for
me to same a great deal of time and mouse clicking?

Graham

Instead of disabling the CD drive, you could remove its drive letter
with the following 3-line batch file. Note that the third line is very long!

@echo off
set drive=
for /F %%a in ('fsutil fsinfo drives ^| find "\" ^| find /i /v "Drives"') do
fsutil fsinfo DriveType %%a | find /i "CD-ROM" > nul && mountvol %%a /d
 
Back
Top