Forum Discussion
PCHealer
Jan 11, 2022Copper Contributor
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
Sort By
- Kevin_MorganIron Contributor
- 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
- Once you have installed the module successfully, you can run the following command to Connect with your Exchange Online service.
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.
- PCHealerCopper Contributor
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!
- PCHealerCopper Contributor
Kevin_MorganHi Kevin thanks but let me stop you right after "Start the Windows " I am running MacOS
- PCHealerCopper Contributoralso is there a way I can create a test envioment ? I currently personally use Exchange Online (Plan 1) can I use that?
- farismalaebSteel ContributorFollow the following Module to download and install ExchangeOnlineManagement
https://www.powershellgallery.com/packages/ExchangeOnlineManagement/2.0.5
then use the cmdlet connect-exchangeonline