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

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,473 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 103.4K Reputation points MVP
    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 Answers by the question author, which helps users to know the answer solved the author's problem.