Going through AD trying to find the users that don’t have email address associated is almost impossible, especially when your AD contains hundreds of user accounts. But with PowerShell, you can do it and find all users that don’t have email address within seconds.

Here is how you can achieve it.

First, open Windows PowerShell window. If you are on Windows 8.1, you can simply press Win+X key and select Windows PowerShell from the list. Or, you can press Win key, type “powershell”, and launch it from the search result list.

Then, run the following cmdlet first to search the AD and save the result in $search variable. If it runs ok, you won’t see anything in return.