Jul 162018
 

This can be fun, but don’t expect to find it often:

Get-ADUser -filter {PasswordNotRequired -eq $true} -properties * | select SamAccountName,surname,givenname,LockedOut,PasswordNotRequired,enabled | Format-Table -AutoSize

 

Don’t forgot to check old passwords, too:

Get-ADUser -filter * -properties * | select SamAccountName,surname,givenname,PasswordLastSet,PrimaryGroup,LastLogonDate , LockedOut , logonCount , PasswordNotRequired, BadLogonCount, badPwdCount, Enabled | Format-Table -Property * -autosize | Out-String -Width 4096 | Out-File C:\pw-last-set.txt

For larger lists you may want to replace Out-File with Export-Csv -path C:\pw-last-set.csv

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)