Here is a one line script that will query your computer for the CR-ROM and change the drive letter to G. Of course you can change the script to use any drive letter, just change g: to whatever letter you’d like.
(gwmi Win32_cdromdrive).drive | %{$a = mountvol $_ /l;mountvol $_ /d;$a = $a.Trim();mountvol g: $a}
Here is a link to a really nice script that can help with standardizing disks in a server deployment and is where I got the one liner from.
Do you acept blog usbmissions?
Yes, go ahead and subscribe to my blog.