Remove x400 addresses

CiscoAzn
CiscoAzn used Ask the Experts™
on
I have over 5000 users and 700 of these email accounts have x400 that I need removed. I have exported out a csv file that list the emails d usernames. Is there a script to remove these x400 addresses only for these 700 accounts that I have exported?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hello,

Assuming your csv contain two columns; emailID, X400

Import-Csv C:\users.csv | % {
      Set-Mailbox $_.emailID -EmailAddresses @{remove=$_.X400}
}

-JJ

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial