Forum Discussion

Azhar_pasha's avatar
Azhar_pasha
Copper Contributor
Mar 01, 2021
Solved

Powershell command to extract UPN and primary SMTP from a set of Display name in csv file.

Hello All,   Please provide me PowerShell command to extract UPN and primary SMTP from a set of Display name in csv file. (office 365)
  • farismalaeb's avatar
    Mar 01, 2021
    This is a quick example on how to get the user information from a displayname

    Get-MsolUser -SearchString 'UserDisplayName' | select UserPrincipalName,ProxyAddresses

Resources