Change drive name using command line

Posted on 2009-02-20
Last Modified: 2013-11-10
I have a mapped drive with the letter Z
and when I go to my computer it looks like   "shared on 'server' (Z:)"
How can I change the name of "shared on 'server' (Z:)" to "something (Z:)"

I know how to change it by going to my computer and right clicking rename, but I need to do this from the command line.

Question by:Knowledge01
    LVL 3

    Accepted Solution


    Label z: DriveNameHere

    Open in new window

    LVL 19

    Expert Comment

    Not exactly what you are looking for, but maybe this may give you a hint:

    and also:

    We tried to do what you are trying to do, (with .reg files) but after half an hour or so the names would revert back to the original name...
    LVL 19

    Expert Comment

    I tried the label command, but it says "Cannot change label on this volume.  The request is not supported." (probably because it is a network drive.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now