Announcement: Need a free practice exam or an interactive mocks material for a Microsoft certification? Click here to use the MS Forms I've created previously.
June 24, 2017 | by iaur | posted as Connect to M365 Services, PowerShell
https://www.microsoft.com/en-us/download/details.aspx?id=41950
Open PowerShell as an administrator then execute each line one at a time.
Install-Module MSOnline
Connect-MSolservice