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
(1)
Add to favorites
Active Directory
2/14/2018
E-mail Twitter del.icio.us 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,
      
      Jack