Feb 28 2021 09:02 PM
Hello All,
Please provide me PowerShell command to extract UPN and primary SMTP from a set of Display name in csv file. (office 365)
Feb 28 2021 11:56 PM
SolutionMar 01 2021 04:11 AM
Hi @farismalaeb ,
Thanks for the below command, However, I was trying on exchange online shell. Hit with an idea to use like this.
Import-Csv "csv path" | foreach{Get-Mailbox -Identity $_.displaynames} | select *UserPrincipalName*, *PrimarySmtpAddress* | Export-Csv "export path"
Feb 28 2021 11:56 PM
Solution