Author Posts

July 13, 2016 at 8:25 pm

Hi, guys.
I am sure that some attributes (like FAX or City for e.g.) are empty for all users in my Active Directory.
Is it possible to find (and to count) users AD attributes that are empty for all users in AD?

July 13, 2016 at 8:32 pm

Get-aduser -ldapfilter '(!(city=*))' -properties city

July 13, 2016 at 10:54 pm

To Expand on Tom's reply, pipe it into Measure-Object to get a count

Get-aduser -ldapfilter '(!(city=*))' -properties city | measure-object