Change network drive label by command line



Question: How do I change the label of a network drive by using the command line?

Answer: Changing the label of a network drive by using the command line can be done with the Windows command line utility “label.” This utility is included with Windows, and can be used to change the label of an existing network drive.

In order to use the label command, you must first open an elevated command prompt. To do this, click on the Start menu, type “cmd” into the search box, and press Ctrl+Shift+Enter to launch an elevated command prompt.

Once the elevated command prompt is open, you can use the label command to change the label of a network drive. The syntax for the command is:

label [drive letter:] [new label]

For example, if you wanted to change the label of the network drive Z: to “NetworkShare”, you would use the following command:

label z: NetworkShare

Once the command has been executed, the label of the network drive will be changed to the new value.

It is important to note that the label command only works with network drives, and will not work with local drives. If you attempt to use the label command on a local drive, it will not be successful.

In addition to changing the label of a network drive, the label command can also be used to display the label of a network drive. To do this, you would use the following syntax:

label [drive letter:]

For example, if you wanted to display the label of the network drive Z:, you would use the following command:

label z:

The command would then display the current label of the network drive.

The label command is a useful utility for changing the label of a network drive, or for displaying the current label of a network drive. It is important to note that this utility only works with network drives, and will not work with local drives.

Inquire Now

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Find your next full or part-time role here

ScaleDesk can either help you find your next full time gig or a part time side gig where you can create extra income!

Onboard with us once
Skip HR screening and go to the final interview with with only your resume and a video interview you never have to redo
Get paid electronically every month for the hours you work
We will be your reference even if you work for us once

IT Teams: Use ScaleDesk to augment your team

Schedule Demo