I am currently tryng to produce a list of all shared mailboxes on the system including last accessed time and size of each mailbox. A lot of the “shared mailboxes” have been created as a normal mailbox with access granted to specific users to the mailbox. What i’m trying to achieve is: Find all shared mailboxes on Exchange (mailboxes with one or more users using this mailbox), find out when it was last accessed and the size of the mailbox.<\/p>\n
Currently this is the script I am using but I’m not even getting anything results.
\nGet-Mailbox -RecipientTypeDetails SharedMailbox | Get-MailboxPermission | Select Identity,User,@{Name=‘Access Rights’;Expression={[string]::join(', ', $_.AccessRights)}} | Export-Csv C:\\temp\\sharedmailboxpermission.csv –NoTypeInformation
\nCan anyone please help?<\/p>","upvoteCount":5,"answerCount":6,"datePublished":"2019-06-21T13:48:37.000Z","author":{"@type":"Person","name":"billionaire","url":"https://community.spiceworks.com/u/billionaire"},"suggestedAnswer":[{"@type":"Answer","text":"
I am currently tryng to produce a list of all shared mailboxes on the system including last accessed time and size of each mailbox. A lot of the “shared mailboxes” have been created as a normal mailbox with access granted to specific users to the mailbox. What i’m trying to achieve is: Find all shared mailboxes on Exchange (mailboxes with one or more users using this mailbox), find out when it was last accessed and the size of the mailbox.<\/p>\n
Currently this is the script I am using but I’m not even getting anything results.
\nGet-Mailbox -RecipientTypeDetails SharedMailbox | Get-MailboxPermission | Select Identity,User,@{Name=‘Access Rights’;Expression={[string]::join(', ', $_.AccessRights)}} | Export-Csv C:\\temp\\sharedmailboxpermission.csv –NoTypeInformation
\nCan anyone please help?<\/p>","upvoteCount":5,"datePublished":"2019-06-21T13:48:37.000Z","url":"https://community.spiceworks.com/t/powershell-script-to-get-shared-mailboxes-with-specifics/717558/1","author":{"@type":"Person","name":"billionaire","url":"https://community.spiceworks.com/u/billionaire"}},{"@type":"Answer","text":"
First thing you might want to do is change all the mailboxes to a shared mailbox. Use this command:<\/p>\n