Some time ago (2008 actually) I wrote a tool that can assign driveletters given a volumename. I use it myself after SysPrep operations to assign the desired drive letters. For instance after cloning a Virtual Machine from a template.

I noticed that I updated this tool sometime after the original post but never uploaded it here. The most important changes are:

  • When using ChDrvLetter without parameters it will list the currently assigned Drive Letters and Volumes:

ChDrvLetter v1.4 (c) Copyright 2008 by Remko Weijnen (www.remkoweijnen.nl)

Assigned Letters: [ACDZ]

Volume 0
Letter: C:\
Label :
Device: \Device\HarddiskVolume1
Name : \\?\Volume{c3acae19-dc1f-11df-8130-806e6f6e6963}\
Type : DRIVE_FIXED

Volume 1
Letter: Z:\
Label :
Device: \Device\CdRom0
Name : \\?\Volume{c3acae1c-dc1f-11df-8130-806e6f6e6963}\
Type : DRIVE_CDROM

Volume 2
Letter: A:\
Label :
Device: \Device\Floppy0
Name : \\?\Volume{c3acae1d-dc1f-11df-8130-806e6f6e6963}\
Type : DRIVE_REMOVABLE

Volume 3
Letter: D:\
Label : DATA
Device: \Device\HarddiskVolume2
Name : \\?\Volume{d45237f1-dc21-11df-8d8f-005056ae0001}\
Type : DRIVE_FIXED

  • There is a new DELETEONLY parameter that can be used to delete an existing Drive Letter assignment

ChDrvLetter DELETEONLY Letter
can be used to delete a drive letter Assignment

Example:
ChDrvLetter DELETEONLY D

  • the CDROM parameter can be used to change drive letter assignments for cd/dvd players:

ChDrvLetter CDROM Letters
can be used to assign drive letters to CD and/or DVD drives (because they have
no label when no cd/dvd is inserted

Example:
ChDrvLetter CDROM ZYX
Assigns Z to the 1st found CD/DVD drive, Y to the next etc.

I hope you like it, find the download below:

ChDrvLetter.zip (14356 downloads )