Jump to content

Recommended Posts

Posted

I know the experts here has an answer for this. I have tried searching and came up with a whole bunch of topics for "local disk" and "rename" but none that applies to my question.

How in an unattend install can you rename Local Disk to whatever you want?

I searched through the registry and found a key that stores this name:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\{42a92161-6650-11d9-81bc-806d6172696f}]

"BaseClass"="Drive"

"_LabelFromReg"="Local Disk"

So I change the name and it doesn't work. Tried rebooting also.

Anyone know how to do this?

Thanks


Posted

use the label command...

LABEL [drive:][label]

LABEL [/MP] [volume] [label]

drive: Specifies the drive letter of a drive.

label Specifies the label of the volume.

/MP Specifies that the volume should be treated as a

mount point or volume name.

volume Specifies the drive letter (followed by a colon),

mount point, or volume name. If volume name is specified,

the /MP flag is unnecessary.

Posted

You could also use vbScripting to do it like below:

Set fso = CreateObject("Scripting.FileSystemObject")

Set drv = fso.Drives.Item("c")

drv.VolumeName = "SERVER_SYS"

  • 2 weeks later...
Posted

i rename c drive using this in my tweak .reg file

Set label for drive c:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\C\DefaultLabel]

@="Main Drive"

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...