Get Most Recent lastLogon for Users From Domain Controllers

The "lastLogon" Active Directory attribute is a property that is not replicated throughout the Domain Controllers.  This attribute is stored on the domain controller that received the authentication request and updated its property accordingly.  Because of this behavior, you hav

5 Star
Add to favorites
Active Directory
E-mail Twitter Digg Facebook
Sign in to ask a question

  • add the ReadonlyReplicaDirectoryServers
    1 Posts | Last post November 23, 2018
    • Hi, thank your for this script. It was very helpful allthough it did not return everything there was. I had to add the ReadonlyReplicaDirectoryServers to get the complete picture.
      But again thanks for pointing me in the right direction.
      Also it is best practice not to use aliasses or abreviations for commands in a script. Try to use the full command i.e. ForEach instead of %. :)
      Kind regards,