How do you re-Label the home drive in MY Computer so that the UNC path is replaced via GPO

Posted on 2006-06-02
Last Modified: 2012-06-27
I am trying to re-label the homedrives of my users so that the UNC path is not displayed.

I have manged to do this for the common drives as the registry entry for these is common across the clients. i have accomplished this through creating a custom ADM script. i have tried the same for the home drives using the %username% environment variable but to no avail, all that happens is a erronious registry key is created.

Does anyone know of a way to relabel the AD/Account mapped homedrive via GPO, the paths to the shares are part of a dfs installation on R2 so they are unwieldy and we do not want the users to be able to see the paths.

Question by:GCWPITSolutions
    LVL 33

    Expert Comment

    So, you are not using the profile path in the users profile to map the home drive?  i.e. \\domainname.local\dfsroot\share\%username%

    LVL 1

    Author Comment

    Yes we are and would like to hide the path from being displayed in explorer
    LVL 33

    Expert Comment

    thinking outside the box a little here....

    1) Make sure that the drive letter specified for HOME drive is the same for all users.. (lets pretend H:)

    2) Create a logon script that performs a Subst command:

    md c:\YourHomeDrive
    subst h: c:\YourHomeDrive

    3) Use a custom ADM to hide the h: drive.... ref:;en-us;231289

    4) Instruct users to save work to c:\yourhomedrive  (which is really the h: drive)

    LVL 33

    Accepted Solution

    lol... the above might be a little too complicated...

    An easier way would be to use a this:

    set renameShell = createObject("shell.application")
    mappedDrive = "h:\" 'Your drive letter
    renameShell.nameSpace(mappedDrive) = "User Home Drive"

    This script will rename the \\domainname.local\dfs\share  to

    User Home Drive (h:\ )


    LVL 8

    Expert Comment

    why do you not want to hide the home drive?

    If you dont want users brosing to that folder, just remove the permision to do so from the root, and set permisions on the sub folders so only system, CO, and admins can access the folders. Hiding locations will only fool some ppl, same ges with share$ .. many ways to show hidden shares

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
    So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    746 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

    13 Experts available now in Live!

    Get 1:1 Help Now