Posts

Showing posts from July, 2022

How to connect office 365 through PowerShell

Image
There are lot of activities you can perform in office 365 by connecting PowerShell. Some of the options are not available in office 365 admin portal but you can perform it through PowerShell. PowerShell for Microsoft 365 enables you to manage your Microsoft 365 settings from the command line. Here we will discuss how to connect office 365 through PowerShell. It is better to use Windows PowerShell ISE instead of PowerShell for better experience. 1. Open Windows PowerShell ISE and click on Run as administrator. 2. Run the command Get-ExecutionPolicy to check what is the execution policy set to 3. Change the Execution policy to Remotesigned. For that run Set-ExecutionPolicy Remotesigned Click on YES. 4. Now run the command  Install-Module ExchangeOnlineManagement 5. Run Connect-ExchangeOnline and will pop up the Microsoft Sign in page 6. Enter your Admin credentials and will connect to office 365. 7. Run a basic command like Get-mailbox and you can see all the mailboxes in yo...