Add Scripts/Powershell/Reporting/Get Password Expiration.md
This commit is contained in:
6
Scripts/Powershell/Reporting/Get Password Expiration.md
Normal file
6
Scripts/Powershell/Reporting/Get Password Expiration.md
Normal file
@ -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
|
||||
```
|
Reference in New Issue
Block a user