Here are some more PowerShell commands from my latest migration:
During a recent migration from 2003 to 2010, we were requested by an external mail archiving vendor to create a send connector to relay emails to their servers as well as set all expansion servers to 2010. We did the second change per this article (http://technet.microsoft.com/en-us/library/aa997918.aspx) on Exchange 2003 and Exchange 2010 coexistence. So how do you set all Distribution groups to use a particular Expansion Server in Exchange? Well, with this simple command:
get-distributiongroup | set-distributiongroup -expansionserver <server name>
You may get prompts to upgrade groups and you may see groups that have funky characters in them which generate errors. These need to be fixed/upgraded before you can change this setting.
For my second PowerShell quick command, I used this command to enable single item archive on any user on a particular server after migrating them from Exchange 2003:
get-mailbox -server <new 2010 server> | set-mailbox -SingleItemRecoveryEnabled $true
Lastly, as was stated above, the archive vendor wanted a new send connector, which was completed as per their documents. However, the send connector would not work. I simply used this command to check the connector settings:
Get-SendConnector “Send Connector name” |fl
I did some modifications of the settings and ended up changing just one of the settings with the
set-sendconnector “Send Connector name” -<parameter you want to change>.
That’s it for now, please look for new posts on Exchange in the coming weeks.