powershell command

kanupriya khanna 55 Reputation points
2023-08-30T14:49:34.2266667+00:00

hi,

i need command where i can check on which mailboxes i have full permissions and another command to check on which calendar i am set as delegate

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 124K Reputation points MVP Volunteer Moderator
    2023-08-30T15:50:02.35+00:00

    Use this for Full access permissions:

    Get-Mailbox -RecipientTypeDetails UserMailbox,SharedMailbox -ResultSize Unlimited | Get-MailboxPermission -User vasil

    For Calendar permissions, is a bit more complicated. This is a simple example that will work most of the time, but will fail on any localized folder:

    Get-Mailbox -ResultSize Unlimited -RecipientTypeDetails SharedMailbox | ? { Get-MailboxFolderPermission "$($_.PrimarySmtpAddress):\Calendar" -User vasil -ErrorAction SilentlyContinue }

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.