Office 365 User mailboxes treated as on-premises User mailboxes by Get-Mailboxstatistics

Benard Mwanza 1,006 Reputation points
2022-06-07T07:45:35.227+00:00

Hello,

I have exchange hybrid in place. Some mailboxes are hosted in exchange server 2016 others are hosted in office 365.

When i run
Get-MailboxStatistics -database "DB01" | select displayname, totalitemsize | Export-CSV F:\temp\db01.csv

I get a list with combination of on-premises user mailboxes, some hosted in DB01 others hosted in office365. My expectation is to have the list of all mailboxes in DB01 returned only.

What i'm i doing wrong or what could be the issue?

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,194 questions
Exchange | Exchange Server | Management
Exchange | Hybrid management
{count} votes

Accepted answer
  1. KyleXu-MSFT 26,396 Reputation points
    2022-06-08T02:00:05.45+00:00

    @Benard Mwanza

    For a migrated mailbox, there doesn't exist database attribute on Exchange on-premises, this command will not find Exchange online mailbox. So, I think it is a synced mailbox or an Exchange on-premises mailbox which use the same name as Exchange online mailbox.
    209239-qa-kyle-09-49-51.png

    I would suggest you use commands below to check whether this mailbox is an Exchange on-premises mailbox:

    Get-Mailbox ThisUser  
    Get-RemoteMailbox ThisUser  
    

    You can also search from Exchange on-premises admin center to double check the type of this mailbox:
    209220-qa-kyle-09-52-53.png


    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.


    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.