LOGONSERVER variable keep previous DC logon

Emmanuel Kl1 31 Reputation points
2022-07-01T08:09:16.013+00:00

Hi,

I have multiple site and in each site I have one RWDC.
When I logon on site A => logonserver variable and nltest /dsgetsite are ok.
I shutdown my computer and I logon on site B => logonserver has site A DC value and nltest /dsgetsite is ok (site B)
I restart my computer and I logon on site B => logonserver variable and nltest /dsgetsite are ok.

Why logonserver variable is not updated on first logon on site B ?

Thx

Emmanuel

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,543 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Gary Reynolds 9,376 Reputation points
    2022-07-01T11:04:33.557+00:00

    Hi

    Have a read of this article about sticky domain controller, not 100% sure it's your problem but does sound like it.

    https://dirteam.com/sander/2008/06/24/domain-controller-stickiness-prevention/amp/

    Gary.


  2. Limitless Technology 39,181 Reputation points
    2022-07-03T13:15:10.82+00:00

    Hi there,

    One thing I've seen is the %logonserver% variable can sometimes be inaccurate and using nltest is better.

    %logonserver% shows DC from different site

    https://social.technet.microsoft.com/Forums/windowsserver/en-US/9f46c3c1-b5f6-4d9a-a5c5-c06ee7ac1eb8/logonserver-shows-dc-from-different-site?forum=winserverDS

    ------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments