Exchange 2010 SP2 Pickup Directory .txt –> .eml

I’m migrating a Web Application that is used as a custom ticketing system; the migration is from Exchange 2003 to Exchange 2010 SP2 and have gone from an x86 OS to an x64.  The full scope of changes are complex but I wanted to document what was needed to set and then verify the Pickup Directory in Exchange 2010 SP2.  Also I wanted to document the simple batch script I wrote to check and rename .txt files in the Pickup Folder to .eml so that they are now processed.  Apparently .txt messages use to work but don’t any longer.

The basics of pickup folder messaging:
http://technet.microsoft.com/en-us/library/bb124230.aspx

Exchange 2010 SP2 using Exchange PowerShell

*where Exchange01 is altered to match the Exchange Server name

To set the Pickup Directory to the default location (no set by default though and you cannot do this in the EMC)

Set-TransportServer Exchange01 -PickupDirectoryPath “C:\Program Files\Microsoft\Exchange Server\V14\TransportRoles\PickUp”

Validate the directory location

Get-TransportServer -Identity “Exchange01” | Fl *PickupDirectoryPath*

Batch Script Scheduled to Recur every 5 minutes that renames files from .txt to .eml

*create .bat file and copy below script in and save
*create schedule task to run the script every 5 minutes indefinitely

cd “C:\Program Files\Microsoft\Exchange Server\V14\TransportRoles\Pickup” | ren *.txt *.eml

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s