6. Change the PowerShell execution policy to RemoteSigned. 7. Connect to Office 365 by typing in Connect-MsolService. A new window will popup, enter the username and password for the global administrator account for your tenant.
Click Finish to complete the procedure. Connect to Office 365 Using PowerShell. To connect to your Office 365 subscription, you need to enter your administrative credentials. Switch to the Start menu and type powershell.
In a previous article I explained how to connect to Office 365 with PowerShell. In this article we explore how to use PowerShell to connect to Exchange Online. We will also look at the differences if you have ADFS deployed and, how to create a script to simplify the connection process.
This will prompt for your credentials and connect to the Office365 services. Additionally you will see verbose messages on the screen to follow what is happening in the background .NOTES Francois-Xavier Cat lazywinadmin.com @lazywinadm #>.