
Change CD-ROM Drive Letter
As Mark has explained, there is not one specific Registry key you can use on all machines. What would probably work is to have your script use Regedit to export the HKEY_LOCAL_MACHINE\Enum\SCSI key as a text file, walk that file to find all instances of the values "CurrentDriveLetterAssignment" and "UserDriveLetterAssignment", then RegWrite new data to each of those value paths as "Z" and "ZZ" respectively.
--
Bill James
Microsoft MVPDTS
?Free Win9x VBScript Utilities?
??New Address - Change your links!??
http://www.svvi.net/wgjames/vbspage/
Quote:
> Hi,
> I need to change the CD-ROM drive letter on a large number of W2KPro
> machines from D: to Z: during setup. Can anyone suggest a method of
> achieving this using a script. I use WSH + VBScript for most of my
> scripting, but can't work this one out. I'm not tied to WSH though. If KIX
> or even the command line gave me the tools to achieve the result, I'm happy
> to use them.
> I want to run the script locally on the machine with the 'RUN ONCE'
> registry key after the machine has finished building.
> Thanks in advance.
> Jim