Jump to content

Renaming Local Disk

Recommended Posts

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:



"_LabelFromReg"="Local Disk"

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

Anyone know how to do this?


Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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