7 replies
by joseph moore
I think you will need to use the %LOGONSERVER% variable to do this.
%LOGONSERVER% = what it sounds like, the Domain Controller the user account logs into. Since you have 1 domain, all Domain Controllers have the same user list, so this just might work.
Let' say you have 3 domain controllers, DC1, DC2 and DC3. Say they all have 2 shared folders on them, \\SHARED1 and \\SHARED2. You need to have drives H: and I: map to the 2 shared folders on the correct Domain Controllers.
Usually, when userBOB logs in at the home office, he authenticates against DC1 and maps H: to \\DC1\SHARED1 and I: to \\DC1\SHARED2.
Ok, BOB goes to remote site 1, with DC2. And he needs to map H: to \\DC2\SHARED1 and I: to \\DC2\SHARED2.
This is your problem.
Ok, try this in the logon script:
by joseph moore
@ echo off
if %LOGONSERVER%=DC1 GOTO DC1
IF %LOGONSERVER%=DC2 GOTO DC2
IF %LOGONSERVER%=DC3 GOTO DC3
EXIT
:DC1
ECHO YOUR DOMAIN CONTROLLER IS DC1
NET USE H: \\DC1\SHARED1
NET USE I: \\DC1\SHARED1
EXIT
:DC2
ECHO YOUR DOMAIN CONTROLLER IS DC2
NET USE H: \\DC2\SHARED1
NET USE I: \\DC2\SHARED2
EXIT
:DC3
ECHO YOUR DOMAIN CONTROLLER IS DC3
NET USE H: \\DC3\SHARED1
NET USE I: \\DC3\SHARED2
EXIT
by joseph moore
See? Use the %LOGONSERVER% variable to jump in the logon script to the appropriate drive mapping section. Just set up IF parameters for each DC in your WAN, and the correct drive mappings for each section. This will make your logon scripts really logs, but if management wants people to float around, then this will do it.
I would leave the roaming profile information alone also. No need to touch that.
hope this helps
by djames
by nettek
by djames
by djames
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending