Script Download:ConnectOffice365.zip
http://gallery.technet.microsoft.com/scriptcenter/Connect-to-Office-365-dd471880

This script establishes a connection to Office 365 Exchange Online. Before establishing a connection, it checks the prerequisites that required by Office 365 Exchange Online.

Nowadays, Office 365 administrators are required to remember a long command to establish a connection to Office 365 Exchange Online. It’s not easy to remember all the parameters clearly. It’s better to save that command in a Windows PowerShell script. Additionally, it’s worth to check all the prerequisites to help Office 365 administrators to troubleshoot the connection issues.

image image
image

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery