$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like
9 Dec // php the_time('Y') ?>
One of the side effects of using sysprep to prepare an image is that drive letter assignments are reset to default. This behaviour is documented in a knowledge base article.
I previously solved this by running a diskpart script but that needed a custom script for each system (if the disk or partition order differs the script needed to be adjusted). So I needed to run a restore with sysprep determine the drive layout after sysprep, change the script, test by restoring again. So I wrote a commandline tool that can change a drive letter assignment based on the volume label.
eg. the partition with the Apps label is assigned D and the partition with the label Profiles is assigned E and so on.
This the syntax:
ChDrvLetter.zip (7371 downloads)ChDrvLetter LABEL Letter
Example:
ChDrvLetter DATA DRemarks:
You cannot change the drive letter for the boot/system partition.
LABEL is case insensitive and the first match is used.ChDrvLetter DELETEONLY Letter can be used to delete a drive letter
Assignment
4 Responses for "Commandline tool to change drive letter assignment"
Thought you might like to know that Avast! Anti-Virus reports the ChDrvLetter.zip as a trojan download called “Win32:Delf-IOA [Trj]”. I have reported it to them as a false positive just now but you may wish to do the same.
The utility sounds great anyway though! 🙂
Thanks Ian, I checked the Avast site but I could not a find a place to submit that info. Please let me know if it will be fixed.
BTW: I am working on an improved version that does better commandline parsing, has a special argument to change the drive letter of cd/dvd drives and lastly can read the label of drives that have currently no drive letter assigned.
Any chances that you would make the source code for it available?
[…] 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. […]
Leave a reply