Files
docs/operations/reference/powershell/reporting/get-password-expiration.md
2026-01-28 20:41:51 -07:00

402 B

tags
tags
PowerShell
Reporting
Scripting

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.

Get-Aduser -filter "enabled -eq 'true'" -properties passwordlastset, passwordneverexpires | ft Name, passwordlastset, Passwordneverexpires > C:\PWReport.txt