General discussion

Locked

Client Machine Logging to Distant Server

By ndhiman ·
I have a LAN with a Compaq ML 350 server configured as a BDC with aprrox 100 NT4 Workstations. This LAN is connected to my corporate office with a 256 KB Frame Relay connection and that's where my PDC resides along with few other BDC's. I use Logon scripts and it gets replicated to all the BDC's. My problem is that most of the WKS are running their Logon Script from my PDC or some other BDC from my corporate office rather than the Local Server. Can anyone tell me why it's happening and how can I force it to look for my Local Server ?

Thanks

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Client Machine Logging to Distant Server

by BeerMonster In reply to Client Machine Logging to ...

Hi,
When a user logs on, a getdcname request is sent to wins (I assume you are using wins). This returns the first 10 domain controllers listed in wins, the first of which is always the pdc. If none of the 10 are contactable, another request is made and the next 10 are sent. the client fires off requests to all 10, and uses the first to respond. This means that the logon server used by the clients can be any either the PDC or any of the BDC's. Now, if your logon script is referenced (as it probably is) by the
%logonserver% variable in user manager then the client will run the script from whatever DC it is using to log on - that being the server referenced by the logonserver variable (we've already established that could be any DC in the domain. You can see what server is logging the client on by opening a command prompt and typing

set l

which will show you the value for logonserver. Now, what to do about it. there are two approaches you could take. Firstly, change all the suers accounts at the site to to use the name of the local server rather than %logonserver% in user manager - this can be done by selecting all relevant accounts at once, selecting properties and making the change 'across the board'. Alternatively, use the reskit util setprfdc.exe. this allows you to specify what dc the client will use as it's preferred logon server. You will need to create a batch file calling the exe to be run locally on the machine at every logon (IE in the run key or startupfolder). Note that if the client is rebooted, it will not be until someone has logged on, and the script is run, that the preferred setting will take effect - and even then only the next time someone logs in. hope this helps....

BTW, this issue has been addressed in win2k with the sue of sites.

Collapse -

Client Machine Logging to Distant Server

by ndhiman In reply to Client Machine Logging to ...

Thanks BeerMonster: I just need a bit more clarification. I use Logon scripts only to map their drives and to give them a custom Screensaver. I don't have any reference to the
%LOGONSERVER% variable anywhere in my logon script or in the User manager. Under User Manager I only have the name of the script I want that user acct to use under the "Logon Script Name" and that script is located in the NETLOGON share on my every BDC and PDC. So I beleive you are saying that I can specify the Name of the preferred server in the User Manager in the same box where currently I only have the Name of the script. Please correct me if I am wrong. and also please specify the correct format.
I really appreciate your help.

Collapse -

Client Machine Logging to Distant Server

by BeerMonster In reply to Client Machine Logging to ...

Hi,
Yes that's correct. specifically for users in that site specify the local dc name as in

\\localdc\netlogon\yourscript.cmd

Collapse -

Client Machine Logging to Distant Server

by ndhiman In reply to Client Machine Logging to ...

BM: I tried what U said but it won't let me put "\\" before the LocalDC. So I did it without it but it still does not go to my LocalDC.

localdc\netlogon\script.bat

Any other Ideas ?

I have about 15 remote DC's and 1 script for each one of them.

Thanks

Collapse -

by ndhiman In reply to Client Machine Logging to ...

This question was closed by the author

Back to Windows Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums