Answer the question
In order to leave comments, you need to log in
How to display users whose password is expiring?
Good morning.
There is such a piece that displays the user's full name, when the password was last changed, and whether the password has expired and whether the checkbox says that the password never expires.
$data = Get-ADUser -Filter * -SearchBase "DC=lala,DC=local" -Properties PasswordExpired,PasswordLastSet,PasswordNeverExpires
$data | ft -Property Name,PasswordLastSet,PasswordNeverExpires,PasswordExpired
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question