bdehdcfg newdriveletter
Assigns a new drive letter to the portion of a drive used as the system drive. Windows commands reference
On Windows
Windows
Assigns a new drive letter to the portion of a drive used as the system drive. As a best practice, we recommend not assigning a drive letter to your system drive.
bdehdcfg -target {default|unallocated|<drive_letter> shrink|<drive_letter> merge} -newdriveletter <drive_letter>
To assign the default drive the drive letter P
bdehdcfg -target default -newdriveletter P:Identify<drive_letter>Defines the drive letter that will be assigned to the specified target drive.