Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Bulk email domain change

$
0
0

I am trying to find the PS script to update multiple users to a new domain in office 365, leaving existing domains as the alias. I have used a command in the past successfully:

Import-CSV "C:\temp\Users.csv" | ForEach {Set-Mailbox $_.UserID -EmailAddresses $_.NewEmailAddress,$_.UserID,$_.Proxy1,$_.Proxy2}

Now it will not work. can anyone tell me what is now wrong with it?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>