Requirements for Office 365 Connector to work
Windows Azure Active Directory Module for Windows PowerShell
PowerShell Script Execution Policy must be set to RemoteSigned as Quick Connect uses PowerShell scripts to perform actions. By default, it’s set to Restricted.
The following options are available when setting the execution policy:
To allow Quick Connect to connect to Office 365, in a PowerShell window running as Administrator, type the following command: Set-ExecutionPolicy RemoteSigned
For troubleshooting connection problems, use the following commands to connect manually to the Office 365 system using native PowerShell. If this doesn't work then the customer will need to troubleshoot the connection issue on their own.
If you're using a plain PowerShell console, run the following command to import the Microsoft Online PowerShell cmdlets:
*The above command is not necessary if you are using the Windows Azure Active Directory Module for Windows PowerShell shortcut.*
Use the command sequence below to make a connection to the Office 365 system:
$cred = Get-Credential
Connect-MsolService -Credential $cred
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionURI https://ps.outlook.com/powershell/ -Credential $cred -Authentication Basic -AllowRedirection
You can save the above command sequence into a .ps1 file (PowerShell Script file) to use at any time.
Once connected, you can manage your Office 365 account remotely. A list of the commands is available on the same site where you download the modules: http://technet.microsoft.com/en-us/library/jj151815.aspx
Here are some useful commands when testing with test accounts.