Monday, August 20, 2018

Get-ADuser when you know the email address only

Sometimes we get the email address as input and we have to get the AD account details for those users using PowerShell.

Try the below cmdlet.

Get-ADUser -Filter {emailaddress -like "benudhar.sahoo@contoso.com"} -Properties emailaddress

No comments: