none
Listing of mail enabled public folders in Exchange 2007 RRS feed

  • Question

  • 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

    Thursday, May 10, 2012 8:08 PM

Answers

  • 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.

    Thursday, May 10, 2012 10:15 PM
  • 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.

    Thursday, May 10, 2012 10:39 PM

All replies

  • 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.

    Thursday, May 10, 2012 10:15 PM
  • 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.

    Thursday, May 10, 2012 10:35 PM
  • 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.

    Thursday, May 10, 2012 10:39 PM
  • Hi Perro

    Did you try above solution?

    Cheers


    Zi Feng

    TechNet Community Support

    Monday, May 14, 2012 5:46 AM
    Moderator