Files
docs/operations/reference/Powershell/Reporting/Get Password Expiration.md
Nicole Rappe daf24d7480
All checks were successful
GitOps Automatic Documentation Deployment / Sync Docs to https://kb.bunny-lab.io (push) Successful in 5s
GitOps Automatic Documentation Deployment / Sync Docs to https://docs.bunny-lab.io (push) Successful in 7s
Mass-File and Folder Renaming
2026-02-24 20:26:52 -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