About Terminal Server, Citrix, Delphi and other stuff
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 (723)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
Related posts:
Active Directory Altiris bug Citrix Dell Delphi Exchange Exchange2003 Exchange2010 Hewlett-Packard HP iOS Jailbreak Java LinkedIn Linux MSI MySQL Navigation Objects Office Outlook Passat PowerPoint PowerShell referall was returned RNS315 RNS510 SasLibEx script slow Terminal Server ThinApp TSAdmin TSAdminEx VBS VCDS Vista VMWare Volkswagen Windows PE WLAN Wordpress WTSWaitSystemEvent wts_event_flush
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.
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