netlogon batch issue

Posted on 2012-09-15
Medium Priority
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
  • 2
  • 2
LVL 97

Expert Comment

by:Lee W, MVP
ID: 38402385
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

ID: 38402386
sorry i meant the batch file i created as a script to be used for user logon profiles
LVL 97

Accepted Solution

Lee W, MVP earned 2000 total points
ID: 38402401
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

ID: 38402443
thanks i will try that.

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
Suggested Courses

809 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