PowerShell: Exports all shared mailboxes with permissions in Microsoft 365
dealwithit-manage2025-02-03T16:16:41+01:00This script that will connect to Microsoft 365, retrieve all shared mailboxes, and list the users who have permissions on each mailbox. The results will be exported to a CSV file. Explanation: It retrieves all shared mailboxes using Get-Mailbox -RecipientTypeDetails SharedMailbox. It fetches permissions using Get-MailboxPermission and filters out system accounts. The output is [...]