Note that this is not necessarily going to give you the CDROM drive. The way I do this in my build tool is I use WMI to find the CDROM drive letter than I use diskpart to change it. Note that there is a corner case of a machine with multiple CD/DVD drives.
Thanks, Brian Desmond [email protected] c - 312.731.3132 -----Original Message----- From: Michael B. Smith [mailto:[email protected]] Sent: Wednesday, March 17, 2010 4:10 PM To: NT System Admin Issues Subject: RE: CMD line way to change CD Rom drive letter Diskpart.exe Select volume 1 Assign letter=Z Quit Regards, Michael B. Smith Consultant and Exchange MVP http://TheEssentialExchange.com -----Original Message----- From: Steven Peck [mailto:[email protected]] Sent: Wednesday, March 17, 2010 5:01 PM To: NT System Admin Issues Subject: CMD line way to change CD Rom drive letter My google/bing-fu is failing me today. When we build servers we change the CDrom drive to Z:. While this is nice, manually changing it is annoying. Anyone know a standard / built in way to do this? I'd like to just script it with powershell (just because it would annoy some of my co-workers) but would be happy for any of the cmdline utilities to work. Thanks Steven ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
