Net Use to rename a share

Posted on 2009-02-19
Last Modified: 2012-06-27
i use net use to map drives in a batch file applied to a gpo.  what i don't like is when it finishes it says

sharename on servername (F:)

anyway to tell it to not put the "on servername" and just make it look like

sharename (F:)

i know you can just right click and rename but this is a secure environment and users can't do that.  want to accomplish it thorugh the logon script if possible.
Question by:dlabbadia01
    LVL 13

    Accepted Solution

    Check the following article for information on how to add some extra commands to your batch job to handle this:

    Author Comment

    thanks.  looks pretty useful.  little over my head.  does this batch file then need to be local to the users computer in order for it to be called within a GPO logon script?
    LVL 13

    Expert Comment

    You could incorporate this into the existing batch job that is making the mapped connections so that once they are mapped, they can also be renamed.

    Yes, it does seem to be a very complicated script, but hopefully you can decipher what it's trying to do and how, so that you can tailor it for your needs.

    Author Comment

    thanks.  i'm just going to leave this open for a day or so in case anyone else has any more advice on the problem but will definately be awarding you a portion or all of the ponts.


    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
    If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article ( first and run the tool TDSSKiller ( to get rid of the infection. Once done, and if the …
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
    This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

    755 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

    19 Experts available now in Live!

    Get 1:1 Help Now