question

GlennMaxwell-2309 avatar image
0 Votes"
GlennMaxwell-2309 asked emilyhua-msft edited

Export mailboxes

Hi All

I am using Office365 E5 license. i am using exchange 2016 hybrid environment. we have thousands of shared mailboxes. some are created in onprem and migrated to cloud, some are created as remote shared mailboxes from onprem. I want to pull all the shared mailboxes which have Office365 licenses assigned to them. Experts guide me how to pull this report.

office-exchange-server-administrationoffice-exchange-online-itprooffice-exchange-hybrid-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered KyleXu-MSFT commented

@GlennMaxwell-2309

Connect to Azure AD first: Connect-MsolService

Then you could use command below to check them:

 Get-MsolUser -Synchronized -Verbose | where{$_.MSExchRecipientTypeDetails -eq "34359738368" -and $_.isLicensed -eq $true}

If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

i have used the below syntax i am not getting the output

Get-MsolUser -MaxResults 20000 -Synchronized -Verbose | where{$.MSExchRecipientTypeDetails -eq "34359738368" -and $.isLicensed -eq $true} | export-csv c:\temp\output.csv -NoTypeInformation

is it not possible to mention E5 license something like $_.isLicensed -eq SPE_E5

0 Votes 0 ·

Do not change it:

146107-qa-kyle-17-00-16.png

If there still no output, it means there no such shared mailbox in your organization.

is it not possible to mention E5 license something like $_.isLicensed -eq SPE_E5

You could use "Get-MsolUser -UserPrincipalName YourShared@v-kexu.msftonlinelab.com | fl isLicensed" to check it.

0 Votes 0 ·