Files
docs/scripts/powershell/reporting/get-password-expiration.md
Nicole Rappe 554c04aa32
All checks were successful
Automatic Documentation Deployment / Sync Docs to https://kb.bunny-lab.io (push) Successful in 5s
Documentation Restructure
2026-02-27 04:02:06 -07:00

13 lines
402 B
Markdown

---
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.
``` powershell
Get-Aduser -filter "enabled -eq 'true'" -properties passwordlastset, passwordneverexpires | ft Name, passwordlastset, Passwordneverexpires > C:\PWReport.txt
```