Windows Powershell to Office 365

From Ilianko

Install MSOnline

c:/>Install-Module MSOnline

Connect (login) to Office 365

c:/>Connect-MsolService

Execute Commands

c:/>Get-MsolUser