Tuesday, November 15, 2011

Migrate Your Exchange 2007 Custom Prompts the Easy Way!

There's a hidden gem in the Exchange scripts folder you can use to easily export custom prompts (AKA Auto Attendants) from Exchange 2007 to 2010.  The script is called MigrateCustomUMPrompts.ps1 and it's located in the \Program Files\Microsoft\Exchange Server\V14\scripts folder on the Exchange 2010 server.

Custom prompts are audio files made available to all Outlook Voice Access users and callers who dial in to UM auto attendants.  They are stored in different places, depending in the Exchange version.

In Exchange 2007 custom prompts are stored in the custom prompt publishing point, which is really just a UNC file share.  Exchange 2007 then uses the Microsoft Exchange File Distribution service to replicate the audio files in the share to the \\<servername>\ExchangeUM folder to all the UM servers in the same dial.

Exchange 2010 simplifies this model and stores the custom prompts in the system mailbox {e0dc1c29-89c3-4034-b678-e6c29d823ed9} (aka, the Discovery Search mailbox).  This mailbox is created when you run Setup /PrepareAD.  If the system mailbox {e0dc1c29-89c3-4034-b678-e6c29d823ed9} mailbox is missing in your environment, you can run Setup /PrepareAD again to recreate it.  By using an Exchange 2010 system mailbox, custom prompts can be backed up and restored along with other mailboxes in a database.

The MigrateCustomUMPrompts.ps1 script runs the Import-UMPrompt cmdlet which requires the Windows Desktop Experience feature.  For this reason you will probably need to run the script from your Unified Messaging server.

To use it, simply open the Exchange Management Shell and change to the Exchange scripts folder.  You can do this quickly by running the following command:

cd $exscripts

It looks dirty, but it isn't.  :)

Now run MigrateCustomUMPrompts.ps1.  The script takes no parameters.  It will connect to the custom UM prompt location on one of the Exchange 2007 servers and import the prompts into the Exchange 2010 system mailbox.


Easy, peasy!  Sure beats the old way. 4:49 PM