One liner command to check and get Active Directory Properties using Powershell. Check which Active Directory properties is set or not set for a particular user or all users in Active Directory. Below is a command to check which user or users has an email address in the user object properties and it will also display which user don't have email address set or accounts which has no email address set. get-aduser -filter * -properties * | select mail, name Of course depends on which properties you like to check you can just replace the mail and name properties on the command shown above. Above command will display the email address if set on the user object property, if the user object property does not display an email address basically there is no email address set on the object. An example below on how the command output looks like: mail ...
Make the world a better place by sharing knowledge, ideas and anything that you can give that comes from the heart.