Automatic renaming Disk C:\

BKPB

Member
Messages
81
Reaction score
10
How can I rename the system drive C:\ during installation?

Имя диска nLite Локальный диск.png
 
You can't change the System drive letter during a normal install. It requires booting to sysprep, and manually changing the drive letter, before continuing the install. Or performing this task after installation.

There is no registry value in the image that overrides the Windows drive letter.

How to change SYSTEM drive letter to C from another letter
 
I don't need to change the drive letter, but the name.
To display not the name "Local Disk", but for example: "System".
 
From the Unattended screen, add your disk layout and change the partition's Label.
Check if your Windows partition is the last, or second to last partition, in this disk layout.

1725727016946.png
 
I think there might be a simpler and safer way.
I sometimes use the Jinn'sliveusb 11 build for installation.4.
It does not apply automatic partitioning, but after the installation is complete and you log in to the system,
Disk C does not have the disk name "Local Disk", but "Windows 10".
 
This is the official MS method for labeling partitions during unattended installs.

If you using a different tool like Jinn's Live USB to apply images, then you should be asking on the Russian forums. You're asked this question on NTLite forum, and this is how it's done with NTLite.
 
I use NTLite, I gave this as an example.
OK I'll look for a way on my own, and if I find one I'll share it here.
 
If you use a 3rd-party tool to apply an image, it's probably doing the partitioning for you. And when you partition, it's optional to change the partition's label to whatever you want.

They are likely running a label command.
Code:
label C: "Windows 10"
 
Thank you, it works on the installed system even without Administrator rights.
I'll try adding this command to Post-Setup.
 
Last edited:
I did this with Windows 10, not tried with Windows 11

You can test by integrating this registry key with NTL (with System for example)
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\C\DefaultLabel]
@="System"
 
I did as you wrote and everything works well. I consider the issue resolved.
 
Back
Top