Listing shared mailboxes and members - Powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-241737%22%20slang%3D%22en-US%22%3EListing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-241737%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EDoes%20anyone%20knows%20how%20to%20get%20a%20list%20of%20shared%20mailboxes%20and%20members%20with%20powershell%3F%3C%2FP%3E%3CP%3EThanks%20in%20advance%2C%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-241737%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-329542%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-329542%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20I%20do%20is%20sending%20the%20results%20to%20a%20txt%20file%2C%20just%20adding%20%3A%3C%2FP%3E%3CP%3E%26gt%3Bmyfilename.txt%26nbsp%3B%3C%2FP%3E%3CP%3Eat%20the%20end%20of%20the%20sentence.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326491%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326491%22%20slang%3D%22en-US%22%3E%3CP%3Ethanks%20it%20worked.%3C%2FP%3E%3CP%3EGet-RecipientPermission%20-Identity%20%22mailbox%22%20-AccessRights%20sendas%20%7C%20where%20%7B(%24_.trustee%20-like%20'*%40*')%20%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326449%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326449%22%20slang%3D%22en-US%22%3EYou%20can%20see%20sendas%20permissions%20using%20the%20Get-RecipientPermission%20cmdlet.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326406%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326406%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20script.%20Can%20i%20get%20a%20list%20of%20send%20as%20permissions%20too%20along%20with%20accessrights%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313986%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313986%22%20slang%3D%22en-US%22%3E%3CBLOCKQUOTE%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F237002%22%20target%3D%22_blank%22%3E%40Paris%20Wells%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3EHere%20is%20the%20powershell%20to%20get%20this%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGet-Mailbox%20-RecipientTypeDetails%20SharedMailbox%20-ResultSize%3AUnlimited%20%7C%20Get-MailboxPermission%20%7C%20select%20identity%2Cuser%2Caccessrights%26nbsp%3B%20%7C%20where%20%7B%20(%24_.User%20-like%20'*%40*')%26nbsp%3B%20%26nbsp%3B%7D%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3ECan%20you%20add%20a%20way%20to%20export%20the%26nbsp%3Bresult%20to%20an%20Excel%20file.%20Would%20really%20appreciate%20it.%26nbsp%3BThanks!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-281021%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-281021%22%20slang%3D%22en-US%22%3E%3CP%3EHere%20is%20the%20powershell%20to%20get%20this%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGet-Mailbox%20-RecipientTypeDetails%20SharedMailbox%20-ResultSize%3AUnlimited%20%7C%20Get-MailboxPermission%20%7C%20select%20identity%2Cuser%2Caccessrights%26nbsp%3B%20%7C%20where%20%7B%20(%24_.User%20-like%20'*%40*')%26nbsp%3B%20%26nbsp%3B%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-242058%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-242058%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Jeremy%2C%3C%2FP%3E%3CP%3EThis%20Will%20be%20enough%20for%20me%2C%20if%20i%20reach%20to%20format%20results.%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-241895%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-241895%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20you%20are%20just%20looking%20for%20a%20quick%20and%20dirty%20list%2C%20this%20may%20help.%26nbsp%3B%20Otherwise%20the%20script%20that%20Vasil%20pointed%20you%20to%20should%20also%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EGet-Mailbox%20-Filter%20%7Brecipienttypedetails%20-eq%20%22SharedMailbox%22%7D%3C%2FSPAN%3E%20%7C%20Get-Mailboxpermission%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-241892%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-241892%22%20slang%3D%22en-US%22%3EThe%20link%20you%20provided%20don%E2%80%99t%20talk%20about%20shared%20mailboxes%20but%20simple%20mailboxes%20permisions%3CBR%20%2F%3EThanks%20anyway%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-241891%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-241891%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3EAs%20far%20as%20i%20know%2C%20MS%20call%20them%20%E2%80%9Cmembers%E2%80%9D.%20You%20can%20see%20it%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fadd-or-remove-members-from-a-shared-mailbox-a1cd0ae0-216c-4dc1-8171-bfacfbd4c1a7%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fadd-or-remove-members-from-a-shared-mailbox-a1cd0ae0-216c-4dc1-8171-bfacfbd4c1a7%3C%2FA%3E%3CBR%20%2F%3EAnd%20every%20other%20MS%20sites.%3CBR%20%2F%3EHowever%2C%20i%E2%80%99ll%20see%20the%20link%20you%20provide%20and%20let%20you%20know.%3CBR%20%2F%3EThanks.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-241840%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-241840%22%20slang%3D%22en-US%22%3E%3CP%3EShared%20mailboxes%20don't%20have%20%22members%22%2C%20perhaps%20you%20mean%20a%20report%20of%20users%20that%20have%20been%20granted%20Full%20Access%20permissions%20to%20the%20shared%20mailbox%3F%20If%20so%2C%20try%20this%20script%3A%20%3CA%20href%3D%22https%3A%2F%2Fgallery.technet.microsoft.com%2FOffice-365-Mailbox-c2adf0db%3Fredir%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgallery.technet.microsoft.com%2FOffice-365-Mailbox-c2adf0db%3Fredir%3D0%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-241770%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-241770%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Jeremy%2C%3C%2FP%3E%3CP%3EThanks%20for%20your%20answer%20but%20what%20i%20get%20with%20this%20command%20does%20not%20shows%20members%20of%20shared%20mailboxes%3A%3C%2FP%3E%3CP%3EName%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Alias%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Database%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ProhibitSendQuota%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ExternalDirectoryObjectI%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20d%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3CBR%20%2F%3E----%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-----%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20--------%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-----------------%26nbsp%3B%26nbsp%3B%26nbsp%3B%20------------------------%3CBR%20%2F%3ELeioandi2%20Homes%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20leioandi2.homes%20EURPR09DG154-db059%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2099%20GB%20(106%2C300%2C44...%205c2b2147-3d01-41ce-be...%3CBR%20%2F%3Esolicitudcontratos%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20solicitudcon...%20EURPR09DG045-db096%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2049.5%20GB%20(53%2C150%2C2...%20452ac29d-4de9-4305-b4...%3CBR%20%2F%3Epp.sur%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20pp.sur%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20EURPR09DG130-db023%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2049.5%20GB%20(53%2C150%2C2...%20af168196-d119-4675-8b...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-241743%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-241743%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20following%20should%20work%20for%20you%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGet-Mailbox%20-Filter%20%7Brecipienttypedetails%20-eq%20%22SharedMailbox%22%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-853721%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-853721%22%20slang%3D%22en-US%22%3EYou%20can%20pipe%20the%20result%20to%20a%20csv%20file%20Get-Mailbox%20-RecipientTypeDetails%20SharedMailbox%20-ResultSize%3AUnlimited%20%7C%20Get-MailboxPermission%20%7C%20select%20identity%2Cuser%2Caccessrights%20%7C%20where%20%7B%20(%24_.User%20-like%20'*%40*')%20%7D%20%7C%20Export-Csv%20-path%20-NoTypeInformation%20more%20info%20bout%20export-csv%20can%20be%20found%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fmicrosoft.powershell.utility%2Fexport-csv%3Fview%3Dpowershell-6%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fmicrosoft.powershell.utility%2Fexport-csv%3Fview%3Dpowershell-6%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-917120%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-917120%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F237002%22%20target%3D%22_blank%22%3E%40Paris%20Wells%3C%2FA%3E%26nbsp%3BJust%20wanted%20to%20say%20thank%20you!%20This%20worked%20perfectly.%20Piped%20it%20to%20Export-CSV%2C%20turned%20that%20into%20an%20XLSX%20and%20off%20to%20management%20it%20goes%20for%20review.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1086989%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1086989%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F237088%22%20target%3D%22_blank%22%3E%40Neeraj%20Ail%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EI%20hope%20this%20will%20help%20you.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fo365reports.com%2F2020%2F01%2F03%2Fshared-mailbox-permission-report-to-csv%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fo365reports.com%2F2020%2F01%2F03%2Fshared-mailbox-permission-report-to-csv%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20script%20exports%20shared%20mailbox%20permissions%20like%20full%20access%2C%20send%20as%20and%20send%20on%20behalf%20to%20CSV%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1279220%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1279220%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F237002%22%20target%3D%22_blank%22%3E%40Paris%20Wells%3C%2FA%3E%26nbsp%3B%20Thanks%20Buddy%2C%20its%20working%20good!!%20%5Cyou%20help%20me%20a%20lot!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1279262%22%20slang%3D%22en-US%22%3ERe%3A%20Listing%20shared%20mailboxes%20and%20members%20-%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1279262%22%20slang%3D%22en-US%22%3EHow%20to%20Get%20a%20List%20of%20Shared%20Mailboxes%20Members%20and%20Permissions%3CBR%20%2F%3EConnect%20to%20Office%20365%20PowerShell%2C%20run%20the%20PowerShell%20ISE%20as%20Administrator%20and%20execute%20the%20following%20command%3A%20...%3CBR%20%2F%3EType%20your%20user%20ID%20and%20password%20in%20the%20Windows%20PowerShell%20Credential%20Request%20and%20click%20OK.%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,

Does anyone knows how to get a list of shared mailboxes and members with powershell?

Thanks in advance,

Regards

18 Replies
Highlighted

The following should work for you:

 

Get-Mailbox -Filter {recipienttypedetails -eq "SharedMailbox"}

Highlighted

Hi Jeremy,

Thanks for your answer but what i get with this command does not shows members of shared mailboxes:

Name                      Alias           Database                       ProhibitSendQuota    ExternalDirectoryObjectI
                                                                                              d                      
----                      -----           --------                       -----------------    ------------------------
Leioandi2 Homes           leioandi2.homes EURPR09DG154-db059             99 GB (106,300,44... 5c2b2147-3d01-41ce-be...
solicitudcontratos        solicitudcon... EURPR09DG045-db096             49.5 GB (53,150,2... 452ac29d-4de9-4305-b4...
pp.sur                    pp.sur          EURPR09DG130-db023             49.5 GB (53,150,2... af168196-d119-4675-8b...

Highlighted

Shared mailboxes don't have "members", perhaps you mean a report of users that have been granted Full Access permissions to the shared mailbox? If so, try this script: https://gallery.technet.microsoft.com/Office-365-Mailbox-c2adf0db?redir=0

Highlighted
Hi,
As far as i know, MS call them “members”. You can see it here: https://support.office.com/en-us/article/add-or-remove-members-from-a-shared-mailbox-a1cd0ae0-216c-4...
And every other MS sites.
However, i’ll see the link you provide and let you know.
Thanks.
Highlighted
The link you provided don’t talk about shared mailboxes but simple mailboxes permisions
Thanks anyway
Highlighted

If you are just looking for a quick and dirty list, this may help.  Otherwise the script that Vasil pointed you to should also work.

 

Get-Mailbox -Filter {recipienttypedetails -eq "SharedMailbox"} | Get-Mailboxpermission

Highlighted

Hi Jeremy,

This Will be enough for me, if i reach to format results.

Thanks.

Regards,

 

Highlighted

Here is the powershell to get this 

 

Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited | Get-MailboxPermission | select identity,user,accessrights  | where { ($_.User -like '*@*')   }

Highlighted
@Paris Wells wrote:

Here is the powershell to get this 

 

Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited | Get-MailboxPermission | select identity,user,accessrights  | where { ($_.User -like '*@*')   }


Can you add a way to export the result to an Excel file. Would really appreciate it. Thanks! 

Highlighted

Thanks for the script. Can i get a list of send as permissions too along with accessrights?

Highlighted
You can see sendas permissions using the Get-RecipientPermission cmdlet.
Highlighted

thanks it worked.

Get-RecipientPermission -Identity "mailbox" -AccessRights sendas | where {($_.trustee -like '*@*') }

Highlighted

What I do is sending the results to a txt file, just adding :

>myfilename.txt 

at the end of the sentence.

Highlighted
You can pipe the result to a csv file Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited | Get-MailboxPermission | select identity,user,accessrights | where { ($_.User -like '*@*') } | Export-Csv -path -NoTypeInformation more info bout export-csv can be found here: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/export-csv?view=powe...
Highlighted

@Paris Wells Just wanted to say thank you! This worked perfectly. Piped it to Export-CSV, turned that into an XLSX and off to management it goes for review.

Thanks!

Highlighted

@Neeraj Ail 

I hope this will help you.
https://o365reports.com/2020/01/03/shared-mailbox-permission-report-to-csv/

This script exports shared mailbox permissions like full access, send as and send on behalf to CSV file.

Highlighted

@Paris Wells  Thanks Buddy, its working good!! \you help me a lot! 

Highlighted
How to Get a List of Shared Mailboxes Members and Permissions
Connect to Office 365 PowerShell, run the PowerShell ISE as Administrator and execute the following command: ...
Type your user ID and password in the Windows PowerShell Credential Request and click OK.