netlogon batch issue

Posted on 2012-09-15
Last Modified: 2012-09-19
I’m having an issue with netlogon.

I am moving the location of a clients files on my server from one location to another. I used robocopy to move all of the files and verified permissions.

I updated the netlogon in both domain controllers.

When the user logs into the TS the attached mapped drive is not pointing to the new location that I set in the script in netlogon. It’s still pointing to the old location.

Is there a cache or something I need to refresh?
Question by:datatechdc
    LVL 95

    Expert Comment

    by:Lee W, MVP
    What do you mean you "updated the netlogon"?  Netlogon is a share.  Did you change permissions on it?  And what do you mean you updated on both domain controllers?

    If you're more specific, perhaps I can help - pretend I have no idea what you're talking about and walk me through the steps like you're explaining how to make a peanut butter sandwich.

    Author Comment

    sorry i meant the batch file i created as a script to be used for user logon profiles
    LVL 95

    Accepted Solution

    Ok, that makes more sense.

    First, you only need to edit it on one DC as the netlogon share is replicated (not necessarily instantly, but quickly). assuming AD is healthy.  And if it's not you shouldn't be working around it, you should be fixing it.

    Posting the batch file from before and after might make it plainly obvious, but I SUSPECT you had the shares mapped like this:

    net use x: \\server\share1
    net use y: \\server\share2

    Or perhaps something like:
    net use x: \\server\share1 /p:y
    net use y: \\server\share2 /persistent:yes

    Sometimes, Windows clients will remember their connections.  Or if you use the /p[ersistent] switch then it remembers the connections and every time the script is run in the future, it's really unnecessary.

    So you need to get it to FORGET the prior connections.

    Make your first line this:

    net use * /delete /y

    That should disconnect all shared drives first.

    Then your other lines should reconnect them to the correct location.

    Further, because this is a logon script, avoid using /p and/or /persistent switches... they are unnecessary and can create problems if the user's rights to access the share are removed or you need to move the data to another location.

    Author Comment

    thanks i will try that.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    We recently had an issue where out of nowhere, end users started indicating that their logins to our terminal server were just showing a "blank screen." After checking the usual suspects -- profiles, shell=explorer.exe in the registry, userinit.exe,…
    New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
    This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
    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 to another domain controller. Log onto the new domain controller with a user account t…

    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

    16 Experts available now in Live!

    Get 1:1 Help Now