Get-Mailbox and Get-MailboxFolderPermission

This topic contains 5 replies, has 4 voices, and was last updated by Profile photo of Mariuxi Pacheco Mariuxi Pacheco 8 months, 2 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #33668
    Profile photo of Mariuxi Pacheco
    Mariuxi Pacheco
    Participant

    I am new to PowerShell.
    Trying to retrieve inbox folder permission for a set of users. but I don't see a direct pipeline between Get-Mailbox and Get-MailboxFolderPermission.

    Get-Mailbox |% {Get-MailboxFolderPermission -Identity ($_.Alias + ":\Inbox")} | Select Identity, FolderName,User, AccessRights |Export-Csv c:\text.csv

    #33675
    Profile photo of Matt Bloomfield
    Matt Bloomfield
    Participant

    I'm not sure what you're asking. Do you just want to know what's happening when you run the command you posted or are you having a problem with the command?

    #33676
    Profile photo of Peter Jurgens
    Peter Jurgens
    Participant

    Unfortunately get-mailboxfolderpermission does not take pipeline objects directly from any other cmdlets so what youre doing is correct and really the only supported way at this time.

    #33678
    Profile photo of tommymaynard
    tommymaynard
    Participant

    You can pipe Get-Mailbox to Get-MailboxFolderPermission (in Exchange 2013, at least), but it only returns results for Top of Information Store, not the Inbox. Therefore, I'd also agree that you'll need to utilize ForEach-Object so that you can append :\Inbox (or whatever other folder name), to the alias.

    #33679
    Profile photo of Peter Jurgens
    Peter Jurgens
    Participant

    In my personal experience I've used get-mailboxfolderstatistics to get mailbox folder id's (folderid property) as I've also had to deal with folder names with Unicode characters. That one is :
    [alias/emailaddress]:[folderid]
    for the identity parameter of get-mailboxfolderpermission

    #33722
    Profile photo of Mariuxi Pacheco
    Mariuxi Pacheco
    Participant

    Everyone! Thanks for your responses. this is helpful.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.