diff --git a/Scripts/Powershell/Reporting/Get Password Expiration.md b/Scripts/Powershell/Reporting/Get Password Expiration.md new file mode 100644 index 0000000..b7c53ce --- /dev/null +++ b/Scripts/Powershell/Reporting/Get Password Expiration.md @@ -0,0 +1,6 @@ +**Purpose**: +Sometimes you need a report of every user in a domain, and if/when their passwords will expire. This one-liner command will help automate that reporting. + +``` powershell +Get-Aduser -filter "enabled -eq 'true'" -properties passwordlastset, passwordneverexpires | ft Name, passwordlastset, Passwordneverexpires > C:\PWReport.txt +``` \ No newline at end of file