Re: Change the Drive Letter of a Volume
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
Aleksandrs wrote:
Hello all:
We have the following situation. We have prepared Windows XP SP2 computer
for cloning, changed CD-ROM drive letter from D: to E:, and used “subst�
command to map D: drive to folder on drive C: (for our legacy application).
After cloning, D: drive letter was mapped back to CD-ROM. How could I change
CD-ROM drive letter from command prompt or script? I have found “Change the
Drive Letter of a Volume� script on Windpws script center, but it appears
that it work only on Windows 2003
(http://www.microsoft.com/technet/scriptcenter/scripts/storage/disks/drives/stdvvb05.mspx). Have you any idea?
Thank you in advance
Hi,
Changing of the drive letter can be done by manipulating the values under
HKLM\SYSTEM\MountedDevices
MS KB article KB223188 http://support.microsoft.com?kbid=223188
details the registry changes required to change a drive letter. Though the
article directly refers to the boot & system drive letters, the information
applies to other drives as well (fixed disk and CD-ROM).
WMI\VBScript solution:
http://groups.google.co.uk/group/microsoft.public.windowsxp.security_admin/msg/feed137416c78ee4?dmode=source
Note that changing boot & system drive letters will usually give you
a non-bootable system unless the criterias in the knowledge base
article 223188 are met...
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx
.