Listing of mail enabled public folders in Exchange 2007
I am trying to obtain a listing of all Mail Enabled Public Folders in our Exchange 2007 organization. We have a little over 3000 public folders. I have tried using the powershell command "get-mailpublicfolder" and it provides a list of all the public folders yet included in this list are folders that are not mail enabled. I verified this by going to the exchange management console and checking the status of random folders against their mail enabled status in the GUI. What I need to pull is a list of all mail enabled folders and also include in the output the path to the folder, i.e. \parent folder name\sub folder\etc... Any advice on the correct format of this command to use to achieve these results will be greatly appreciated. I have search high and low on the internet yet cannot find how to export these results Thank you. PT
May 10th, 2012 4:08pm

Run this: Get-MailPublicFolder -Filter { EmailAddresses -like "*example.com" } | ft Name, EmailAddresses Change example.com to your external or internal domain (you may have to run it twice to get all results). That will show you only the folders that have an email address, which is required to be mail enabled. Simon. Simon Butler, Exchange MVP Blog | Exchange Resources | In the UK? Hire Me.
Free Windows Admin Tool Kit Click here and download it now
May 10th, 2012 6:15pm

Run this: Get-MailPublicFolder -Filter { EmailAddresses -like "*example.com" } | ft Name, EmailAddresses Change example.com to your external or internal domain (you may have to run it twice to get all results). That will show you only the folders that have an email address, which is required to be mail enabled. Simon. Simon Butler, Exchange MVP Blog | Exchange Resources | In the UK? Hire Me.
May 10th, 2012 6:15pm

Thank you for your reply. I modified the script as you suggested and it returned about 2700 rows with entries similar to the following: "4ec4f0187cb04f4cb6973460dfe252df" If I run something like: Get-MailPublicFolder -ResultSize Unlimited | select-object name, identity, primarysmtpaddress it returns readable results. Not sure what is wrong.
Free Windows Admin Tool Kit Click here and download it now
May 10th, 2012 6:35pm

I can only suggest that you run the command against a single folder that you know is mail enabled, with | fl to see what is being returned. I tested it here before posting and it only returned SMTP addresses. the value of ExternalEmailAddress does have a random set of numbers like you have outlined. However running it with primarysmtpaddress might return the results that you need. It will depend though on whether your server is supporting multiple domains - if so, you may have to run the command multiple times - once for each domain to ensure that you have everything. Simon. Simon Butler, Exchange MVP Blog | Exchange Resources | In the UK? Hire Me.
May 10th, 2012 6:39pm

I can only suggest that you run the command against a single folder that you know is mail enabled, with | fl to see what is being returned. I tested it here before posting and it only returned SMTP addresses. the value of ExternalEmailAddress does have a random set of numbers like you have outlined. However running it with primarysmtpaddress might return the results that you need. It will depend though on whether your server is supporting multiple domains - if so, you may have to run the command multiple times - once for each domain to ensure that you have everything. Simon. Simon Butler, Exchange MVP Blog | Exchange Resources | In the UK? Hire Me.
Free Windows Admin Tool Kit Click here and download it now
May 10th, 2012 6:39pm

Hi Perro Did you try above solution? CheersZi Feng TechNet Community Support
May 14th, 2012 1:46am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics