PowerShell: Query All Domain Controllers for Blank Attributes in Active Directory

Query all domain controllers for users with a blank “mail” attribute and if the user is enabled/disabled, then export a CSV list for each user that is found. Replace “mail” with whatever attribute you would like to query.

Continue reading “PowerShell: Query All Domain Controllers for Blank Attributes in Active Directory”