Forum Discussion

PCHealer's avatar
PCHealer
Copper Contributor
Jan 11, 2022

How to run Exchage PowerShell - Exchange Online

Simple question I am working at a company that uses Exchange online ( they call it Cloud Based - O365 which is the same thing I think).

 

I am logged into https://admin.exchange.microsoft.com/

 

But not sure where to run Exchange PowerShell form any ideas?

I can see Azure Cloud Shell but I don't want to use that as we don't have a storage mounted.

6 Replies

  • Kevin_Morgan's avatar
    Kevin_Morgan
    Iron Contributor

    PCHealer 

     

    • Start the Windows PowerShell console with "Run as administrator" privilege.
    • Run the following command to install the Exchange Online Management powershell module. This is one time work.

     

    Install-Module ExchangeOnlineManagement

     

     

    Connect-ExchangeOnline

     

    • Now, you can run the required Exchange commands to work with your Exchange service. 

     

    Get-Mailbox # List mailboxes
    
    Get-EXOMailbox # List mailboxes using V2 module script. Provide faster output. 

     

    • PCHealer's avatar
      PCHealer
      Copper Contributor

      Kevin_Morgan 

       

      I already have Exchange 1 - 365 plan so I was then able to install PowerShell on my Macbook and conntact to Exchange Online. Brilliant thanks alot!

    • PCHealer's avatar
      PCHealer
      Copper Contributor

      Kevin_MorganHi Kevin thanks but let me stop you right after "Start the Windows " I am running MacOS

      • PCHealer's avatar
        PCHealer
        Copper Contributor
        also is there a way I can create a test envioment ? I currently personally use Exchange Online (Plan 1) can I use that?

Resources