none
Mail Enabled Shared Mailboxes

    Question

  • Good morning!  

    I am trying to find Powershell commands to get a list of mail enabled Shared Mailboxes along with the users that have access to them.  I know how to do this for Public Folders and was able to get a generic list.  We have a mixed environment of 2007 and 2010, so I know the commands will be different, if there is something like that available.  Any help is appreciated!  Thanks!

    Wednesday, July 24, 2013 3:27 PM

Answers

  • Hi Jeff,

    I think this should do the trick..

    Get any shared mailboxes and permissions granted
    Get-Mailbox | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.IsInherited -eq $false} | Select Identity,User,@{Name='Access Rights';Expression={[string]::join(', ', $_.AccessRights)}} | Export-Csv -NoTypeInformation SharedMBpermissions.csv



    Dame Luthas, ITILv3, MCSE Messaging 2013, MCSA, MCITP

    My Technical Blog: http://thelifestrategist.wordpress.com

    Discipline is the Difference between Goals and Accomplishments

    If this post is useful, please hit the green arrow on the left & if this is the answer hit "mark as answer"

    • Proposed as answer by Dame Luthas Wednesday, July 24, 2013 6:16 PM
    • Marked as answer by JeffyK Wednesday, July 24, 2013 6:25 PM
    Wednesday, July 24, 2013 4:41 PM

All replies

  • Hi Jeff,

    I think this should do the trick..

    Get any shared mailboxes and permissions granted
    Get-Mailbox | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.IsInherited -eq $false} | Select Identity,User,@{Name='Access Rights';Expression={[string]::join(', ', $_.AccessRights)}} | Export-Csv -NoTypeInformation SharedMBpermissions.csv



    Dame Luthas, ITILv3, MCSE Messaging 2013, MCSA, MCITP

    My Technical Blog: http://thelifestrategist.wordpress.com

    Discipline is the Difference between Goals and Accomplishments

    If this post is useful, please hit the green arrow on the left & if this is the answer hit "mark as answer"

    • Proposed as answer by Dame Luthas Wednesday, July 24, 2013 6:16 PM
    • Marked as answer by JeffyK Wednesday, July 24, 2013 6:25 PM
    Wednesday, July 24, 2013 4:41 PM
  • Awesome that worked!  Here's a dumb question, but is there a way to have it display if it can send mail internally and/or externally?
    Wednesday, July 24, 2013 6:15 PM
  • Great! Please mark it as answered :-)

    As far as your second question.. 

    You want to know if the shared mailbox are able to send internally or externally?


    Dame Luthas | thelifestrategist.wordpress.com

    Success is Something you Attract by the Person you Become

    If this post is useful, please hit the green arrow on the left & if this is the answer hit "mark as answer"

    Wednesday, July 24, 2013 6:17 PM
  • Yes please!  If there is a way to tell both that would work.
    Wednesday, July 24, 2013 6:25 PM
  • Unless you've created explicit transport rules or configured Recipient Filtering.. they would be able to send like any other user.



    Dame Luthas | thelifestrategist.wordpress.com

    Success is Something you Attract by the Person you Become

    If this post is useful, please hit the green arrow on the left & if this is the answer hit "mark as answer"

    • Proposed as answer by Dame Luthas Wednesday, July 24, 2013 6:30 PM
    Wednesday, July 24, 2013 6:29 PM
  • Ok, that's what I thought.  Thanks for all of your help today!
    Wednesday, July 24, 2013 6:53 PM