Get-ADUser PowerShell - Get AD user details using email address

Get-ADUser PowerShell command Get-ADUser is a PowerShell cmdlet that gets a user or performs a search to retrieve multiple user objects from Active Directory.

Start Windows PowerShell or SharePoint Management Shell (right click - run as administrator) and use this command.

Syntax Get-ADUser -Filter [-ResultPageSize ] [-ResultSetSize ] [-SearchBase ] [-SearchScope { | | }] [-SearchScope { | | }] [-AuthType { | }] [-Credential ] [-Partition ] [-Properties ] [-Server ] [] Example

Replace the email address with your original email-id before running this command.

Get-ADUser -Filter {Emailaddress -eq ''}

You can modify the command as below to get only the desired property. Below example gets only Display Name, this will return/display only the Name of the user.

Get-ADUser -Filter {Emailaddress -eq ''} -Properties Name | Select Name

Troubleshooting If you get an error The term 'Get-ADUser' is not recognized as the name of a cmdlet, run below commands before executing the above script.

Import-Module ServerManager

Add-WindowsFeature RSAT-AD-PowerShell

import-module activedirectory