Skip to content

Instantly share code, notes, and snippets.

@e-sterling
Created August 29, 2019 08:55
Show Gist options
  • Select an option

  • Save e-sterling/05af6a76082112b50e91bc010501767a to your computer and use it in GitHub Desktop.

Select an option

Save e-sterling/05af6a76082112b50e91bc010501767a to your computer and use it in GitHub Desktop.
Check logon date for a specific user across all domain controllers
(Get-ADForest).GlobalCatalogs |%{Get-ADUser ethan.sterling -Server $_ -Properties LastLogonDate,PasswordLastSet}|Select SAMAccountName,LastLogonDate,PasswordLastSet |ft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment