Handy AD/Server PowerShell commands

Run these on a Domain Controller

List AD users with passwords that are configured to not expire.

get-aduser -filter * -properties Name, PasswordNeverExpires | where {$_.passwordNeverExpires -eq "true" } | Select-Object DistinguishedName,Name,Enabled | ft

Leave a Reply

Your email address will not be published. Required fields are marked *