Avatar of Mark Lewis
Mark Lewis
 asked on

Exchange 2010 powershell problem deleting secondary email address

We are letting our secondary email address go (old name). I deleted the domain from the policy and accepted domain in Exchange but it left all the old email addresses on the recipients. I really need to know how to remove them form 200+ users in one swoop but decided to test on a single user first.

I ran this command: Set-Mailbox "John Doe" -EmailAddresses @{remove="jdoe@mydomain.com"}

I got this in return: WARNING: The command completed successfully but no settings of 'mydoamin.com/.../John Doe' have been modified.

Obviously the secondary email address was not removed.
PowershellExchangeEmail Servers

Avatar of undefined
Last Comment
Qlemo

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Todd Nelson

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Gaurav Singh

Can you try to  restart the Transport service or Restart the server and see if the secondary email is gone.
SOLUTION
Qlemo

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck