Created
August 29, 2019 08:55
-
-
Save e-sterling/05af6a76082112b50e91bc010501767a to your computer and use it in GitHub Desktop.
Check logon date for a specific user across all domain controllers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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