Step 2. Create your CSV File with the following values.
Connect office365:
Run the following command in PowerShell $csv = Import-Csv C:\Users\malik\Desktop\emailchange.csv foreach ($line in $csv) { $SMTP ="SMTP:"+$line.AliasEmailaddress Set-Mailbox -Identity $line.User -EmailAddresses $SMTP -WindowsEmailAddress $line.AliasEmailaddress }
Did this answer your question?Thanks for the feedbackThere was a problem submitting your feedback. Please try again later.