Last active
July 12, 2023 17:12
-
-
Save adamgell/09d394d90c140207931bd3de19122eff to your computer and use it in GitHub Desktop.
Dump User last password set
This file contains 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-ADUser -Filter * -Properties Name,PwdLastSet,PasswordLastSet | sort Name | Select Name,@{Name='PwdLastSet';Expression={[DateTime]::FromFileTime($_.PwdLastSet)}},PasswordLastSet | Export-Csv C:\Temp\Output.csv -NoTypeInformation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Filtered on Active users only