office 365 remove secondary smtp alias on microsoft dirsynched

Hello ,

i when i am connecting from powershell i want to remove to each user the secondary smtp alias onmicrosoft.com. because it is confusing the people .I just want to have the domain only smtp.can you help me with the command of smtp deletion??Also is there any software that can make my life easier and make changes from there??

Thanks.
Mark SoultchAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Marwan OsmanCommented:
check http://community.office365.com/en-us/f/148/t/266430.aspx they mentioned a script to remove bulk of emails with specific domain

and the below is also helpful

http://o365info.com/manage-email-address-using-powershell/
0
Mark SoultchAuthor Commented:
i tried but it  replies me the message  failed because it's out of the current user's write scope
0
Marwan OsmanCommented:
So try the one in the below link after changing the domain name in the script to yours:

https://www.exchangecore.com/blog/powershell-removing-secondary-smtp-addresses-specified-domain/
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Marwan OsmanCommented:
Check this tool it seems but I have a limited access to the internet so I didn't check if it works with new versions of AD and exchange, get it from the below link

http://m.msexchange.org/articles-tutorials/exchange-server-2003/management-administration/Implementing-Custom-Recipient-Policies.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mark SoultchAuthor Commented:
not helping me
0
Marwan OsmanCommented:
You must run it on windows server 2003:

https://admodify.codeplex.com/releases/view/6065
0
Marwan OsmanCommented:
Did you try the second script i mentioned? Try it and read the exported file to see what did happened
0
Mark SoultchAuthor Commented:
i must remove it online but it is dirsynch
0
Marwan OsmanCommented:
0
Marwan OsmanCommented:
What is the error when u run the script?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.