Categories: System Configuration

How to change drive label

The labels of disk drives(volumes) can be changed from windows command line using label command.  In the command, we need to specify the drive letter for which we need to change the label. Note that drive letter and drive label are different. In the below snapshot, drive letter is C: and drivel label is ‘Windows 7‘


Command to change drive label:

label driveletter label

Example:
To set the label Windows for the drive C: the command is

label C: Windows

We can execute this command only from elevated administrator command prompt. Running the command from a normal command prompt would generate the below error.

C:> label c: Windows
Access Denied as you do not have sufficient privileges.
You have to invoke this utility running in elevated mode.
Srini

View Comments

Recent Posts

Add new user account from command line (CMD)

Adding users from command line is much easier than going through the UI. It saves…

4 years ago

Delete directory from command line [Rmdir]

Do you want to delete a directory from Windows command prompt(CMD)? This post explains how…

4 years ago

TaskKill: Kill process from command line (CMD)

We can kill a process from GUI using Task manager. If you want to do…

4 years ago

Kill Chrome from command line

Chrome is definitely the stable browser compared to other ones and it has been my…

4 years ago

Find windows OS version from command line

Windows has multiple command line utilities that can help find the version of the Windows…

4 years ago

How to check if Windows 32 or 64 bit?

There are multiple ways to check whether a Windows computer is running 32-bit OS or…

7 years ago