Link to home
Start Free TrialLog in
Avatar of dagostino
dagostino

asked on

Seconday EMail Addresses in Exchange 2010

Over the years we have merged with a few companies and because of this those users had email addresses with their old domains listed. We are now cleaning up since we have moved to Exchange 2010 and I would like to find a way to get a listing of all those with domains other then our primary domain now and delete them. If anyone could help with a script to do this I would appreciate it.
Avatar of oldhammbc
oldhammbc
Flag of United Kingdom of Great Britain and Northern Ireland image

In all honesty you could just remove the old domains from the "allowed domains" tab in the management console. The email address's will still be attached to users but no one will be able to use them.

to list the ones you have run:
(get-mailbox <mailboxname>).EmailAddresses

This will help too:
http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2010/01/21/How-to-modify-email-addresses-with-PowerShell-2.0.aspx
SOLUTION
Avatar of flaphead_com
flaphead_com
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial