Connect to Office 365 PowerShell – Connect-MsolService

Office 365 MsolService
 
First, download “Microsoft Online Services Sign-In Assistant for IT Professionals RTW” from this link:
Install it.
After that, launch a power-shell with administrative rights and run this command:
Install-Module MSOnline
 
 
 
Now you can run the Connect-MsolService command.