Connecting to Office 365 using Windows Powershell
1. Open Windows Powershell with Run as Administrator on your computer2. $Cred = Get-credential (enter administrator email/password)
3. $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic –AllowRedirection
4. Set-ExecutionPolicy RemoteSigned
5. Import-PSSession $Session
You should now be connected and can use Powershell commands
For more info see: http://msexchangeguru.com/2014/02/03/eop-o365-connect-powershell/