Report Exchange MailEnabled Public Folder and Anonymous has Contributor permission

Posted on 2011-04-22
Last Modified: 2013-11-25
Hello, I am trying to list mailenabled public folders that includes the Name, Identity, Mailenalbed, PrimarySMTPaddress and what permission the user "Anonymous" has to the PF.

this is what I found so far, and it meets part of my objective.
PS:\$Address = @{Name="SMTPAddress";expression={if ($_.MailEnabled -eq $True){Get-MailPublicFolder $_ | Select PrimarySMTPAddress}}}
PS:\get-PublicFolder "\" -Recurse | Sort-Object MailEnabled | select Name, Identity, MailEnabled, $Address | ft -AutoSize

using the above I'm not sure how to add : get-PublicFolder "\" -Recurse | Get-PublicFolderClientPermission -user Anonymous |fl
Question by:hatfiemh
    1 Comment
    LVL 70

    Accepted Solution

    Doesn't need too much of a modification:
    $Address = @{Name="SMTPAddress";expression={if ($_.MailEnabled -eq $True){Get-MailPublicFolder $_ | Select -ExpandProperty PrimarySMTPAddress }}}
    $AnonPermissions = @{Name="AnonymousPermissions";Expression={ Get-PublicFolderClientPermission $_.Identity -User Anonymous | Select-Object -ExpandProperty AccessRights }}
    Get-PublicFolder "\" -Recurse | Select-Object Name, Identity, MailEnabled, $Address, $AnonPermissions | Sort-Object MailEnabled

    Open in new window

    Note: ExpandProperty in the example above was introduced with PowerShell 2, we'll have to change stuff if you only have PowerShell 1 available.



    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
    The purpose of this video is to demonstrate how to set up a Mailchimp campaign. This will include styling and adding elements to a newsletter/email. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchim…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now