Get-RemoteMailbox & Get-Mailbox are not recognized

AW07 25 Reputation points
2023-09-27T12:13:20.3333333+00:00

Hello ,

I've installed latest Module version of Exchange Online Management.
Currently I'm using below commands in my scripts. I get an error saying its not been recognized.
Please can someone tell if below commands are been depreciated or I can still use them.

Get-RemoteMailbox & Get-Mailbox.

Thanks & Regards

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,188 questions
Windows for business | Windows Server | User experience | PowerShell
Exchange | Other
{count} votes

Accepted answer
  1. Rich Matheisen 47,901 Reputation points
    2023-09-27T15:20:54.7333333+00:00

    Get-RemoteMailbox: This cmdlet is available only in on-premises Exchange.

    Get-Mailbox: The Get-Mailbox works for both on-prem and On-Line versions of Exchange. However, it's preferred to us Get-EXOMailbox for Exchange On-Line version.

    The Get-RemoteMailbox and Get-Mailbox cmdlets are found in the ExchangePowerShell module. Is that module loaded in your PowerShell session?

    2 people found this answer helpful.
    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.