Script Download: SetOffice365PowerShellProfile .zip http://gallery.technet.microsoft.com/scriptcenter/Configuring-a-Windows-faecf7cb
This script can configure a Windows PowerShell profile for Office 365 Exchange Online. It appends the Connect-OSCExchangeOnline and Disconnect-OSCExchangeOnline functions to your Windows PowerShell profile. Afterward, you can use these two functions directly without remembering New-PSSession and its parameters.
Currently, Office 365 Exchange Online administrators use the New-PSSession function to connect Windows PowerShell to Office 365. Some administrators feel that it is difficult to remember all the parameters clearly. It is better to use a Windows PowerShell profile to store the two functions and help administrators use Office 365 more easily.
You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery