Remove x400 addresses

CiscoAzn used Ask the Experts™
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?
Watch Question

Do more with

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

Assuming your csv contain two columns; emailID, X400

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


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