Article ID: 928543 - Last Review: February 12, 2007 - Revision: 1.3 How to automatically assign a drive letter by using the Diskpart.exe command on a Windows Server 2003-based computer or on a Windows XP-based computerOn This PageINTRODUCTIONThis article describes how to automatically assign a drive letter by using the Diskpart.exe command in the Sysprep.inf file and in the Cmdlines.txt file. The Diskpart.exe command can be used together with the Sysprep tool to deploy a Microsoft Windows Server 2003-based computer or a Microsoft Windows XP-based computer. MORE INFORMATIONTo automatically assign a drive letter, first create the DiskPart script, and then run the Sysprep tool by using one of the following methods. DiskPart script sampleThe following script (Script.txt) is used to assign the drive letter of the second partition to drive X. This script assumes that you have divided the hard disk that connects to the computer into two partitions.Method 1: Use mini-setup
Method 2: Use the Out of Box Experience (OOBE) WizardNote The OOBE Wizard is available only in Windows XP.
REFERENCES
For more information about how to assign the drive letter during the deployment of the operating systems, click the following article numbers to view the articles in the Microsoft Knowledge Base:
307844
(http://support.microsoft.com/kb/307844/
)
How to change drive letter assignments in Windows XP
300415
(http://support.microsoft.com/kb/300415/
)
A description of the Diskpart command-line utility
Windows operating systems typically cannot modify the drive letters that are assigned to the system drive or to the boot drive.
For more information about how to change the drive letter that is assigned to the system drive or to the boot drive, click the following article numbers to view the articles in the Microsoft Knowledge Base:
223188
(http://support.microsoft.com/kb/223188/
)
How to restore the system/boot drive letter in Windows
830577
(http://support.microsoft.com/kb/830577/
)
How to set the drive letter for the system drive when you install Microsoft Windows Server 2003
APPLIES TO
| Article Translations
|
Back to the top
