Public Folder Names Have Changed in Outlook 2010

If you have any programs that use Outlook to script objects in Exchange, you need to  be aware that the folder name for root public folder changed with Outlook 2010.  In previous versions of Outlook the root public folder is named “\Public Folders”.  Starting with Outlook 2010 the root public folder is named “\Public Folders – test@example.com” where test@example.com is the connected user’s primary email address.  Fortunately you can use the GetDefaultFolder() method on the Outlook NameSpace object to get common folders without hard coding the name of it.  For example you could call GetDefaultFolder(olPublicFoldersAllPublicFolders) to get the "All Public Folders" folder in the Exchange Public Folders store if you're using Exchange.

General Outlook 2010 Exchange Server