powershell command

kanupriya khanna 55 Reputation points


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.
3,705 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 79,631 Reputation points MVP

    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