none
Listing Delegates - Specific User RRS feed

  • Question

  • We are trying to write a script that will go through all mailboxes or all mailboxes in a database to find out which mailboxes a certain user has Calendar access rights to. Just can't seem to display the mailbox along with the access rights.

    $User = Get-Mailbox -Database "" -ResultSize Unlimited

    $User | ForEach {Get-MailboxFolderPermission -identity "$($_.PrimarySmtpAddress):\Calendar"} | Where {$_.User.ToString() -eq "Test, User"} | FT $User,Folder,AccessRights

    The output is missing the mailbox that is queried. How can we get that included in the output as well?


    MCITP Exchange 2010 | MCITP Lync Server 2010 | MCTS Windows 2008

    Monday, April 13, 2015 4:31 PM

Answers

  • caught my own simple oversight:

    $User | ForEach {Get-MailboxFolderPermission -identity "$($_.PrimarySmtpAddress):\Calendar"} | Where {$_.User.ToString() -eq "Test, User"} | FT Identity,AccessRights


    MCITP Exchange 2010 | MCITP Lync Server 2010 | MCTS Windows 2008

    • Marked as answer by Vegas588 Monday, April 13, 2015 4:50 PM
    Monday, April 13, 2015 4:50 PM