A nice nugget from a reader:
Get-ADUser -filter {enabled -eq $true} -Properties * | ForEach-Object{$_.psobject.properties| Where-Object {($_.Name -notmatch "MemberOf|PropertyNames") -and ($_.Value -like "*passw*")}}|Select-Object baseobject,name,value|sort-object baseobject | export-csv users.csv
Need to test this in the lab first.
A nice nugget from a reader:
Need to test this in the lab first.