{"id":319,"date":"2020-06-10T09:05:06","date_gmt":"2020-06-10T08:05:06","guid":{"rendered":"https:\/\/www.carmichaelclan.net\/?p=319"},"modified":"2020-06-10T09:05:06","modified_gmt":"2020-06-10T08:05:06","slug":"office-365-list-members-of-shared-mailboxes","status":"publish","type":"post","link":"https:\/\/www.carmichaelclan.net\/?p=319","title":{"rendered":"Office 365 &#8211; List members of Shared Mailboxes"},"content":{"rendered":"\n<p><strong>List members of Shared Mailboxes (Microsoft 365)<\/strong><\/p>\n\n\n\n<p><strong>1.&nbsp;<\/strong>Connect to Office 365 PowerShell, run the PowerShell ISE as Administrator and execute the following command:<\/p>\n\n\n\n<p>Set-ExecutionPolicy RemoteSigned<br>$Cred = Get-Credential<\/p>\n\n\n\n<p><strong>2.&nbsp;<\/strong>Type your user ID and password in the&nbsp;<strong>Windows PowerShell Credential Request and click OK.<\/strong><\/p>\n\n\n\n<p><strong>3.&nbsp;<\/strong>Create a session using the following command, modifying&nbsp;\u2013ConnectionUri parameter based on your Exchange Online location:<\/p>\n\n\n\n<p>$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/outlook.office365.com\/powershell-liveid\/ -Credential $Cred -Authentication Basic \u2013AllowRedirection<\/p>\n\n\n\n<p><strong>4.&nbsp;<\/strong>Connect to Exchange Online:<\/p>\n\n\n\n<p>Import-PSSession $Session \u2013DisableNameChecking<\/p>\n\n\n\n<p><strong>5.&nbsp;<\/strong>Copy and run the following script, adjusting the filters for the specific user you want to report on and specifying the desired path for the CSV file output:<\/p>\n\n\n\n<p>Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited | Get-MailboxPermission |Select-Object Identity,User,AccessRights | Where-Object {($_.user -like &#8216;*@*&#8217;)}|Export-Csv C:\\Temp\\sharedfolders.csv&nbsp; -NoTypeInformation&nbsp;<\/p>\n\n\n\n<p><strong>6.&nbsp;<\/strong>Review the resulting CSV report:<\/p>\n\n\n\n<p><strong>7.&nbsp;<\/strong>Terminate your session with following cmdlet:<\/p>\n\n\n\n<p>Remove-PSSession$Session<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>List members of Shared Mailboxes (Microsoft 365) 1.&nbsp;Connect to Office 365 PowerShell, run the PowerShell ISE as Administrator and execute the following command: Set-ExecutionPolicy RemoteSigned$Cred = Get-Credential 2.&nbsp;Type your user ID and password in the&nbsp;Windows PowerShell Credential Request and click OK. 3.&nbsp;Create a session using the following command, modifying&nbsp;\u2013ConnectionUri parameter based on your Exchange Online [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-319","post","type-post","status-publish","format-standard","hentry","category-office-365"],"_links":{"self":[{"href":"https:\/\/www.carmichaelclan.net\/index.php?rest_route=\/wp\/v2\/posts\/319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.carmichaelclan.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.carmichaelclan.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.carmichaelclan.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.carmichaelclan.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=319"}],"version-history":[{"count":2,"href":"https:\/\/www.carmichaelclan.net\/index.php?rest_route=\/wp\/v2\/posts\/319\/revisions"}],"predecessor-version":[{"id":321,"href":"https:\/\/www.carmichaelclan.net\/index.php?rest_route=\/wp\/v2\/posts\/319\/revisions\/321"}],"wp:attachment":[{"href":"https:\/\/www.carmichaelclan.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.carmichaelclan.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.carmichaelclan.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}