From 767d6726a7e001ffcfc630aa2d1939605fd31cca Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Thu, 11 Jan 2024 20:22:15 -0700 Subject: [PATCH] Add Scripts/Powershell/Reporting/Get Password Expiration.md --- Scripts/Powershell/Reporting/Get Password Expiration.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Scripts/Powershell/Reporting/Get Password Expiration.md 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