Script Download: SetOffice365PowerShellProfile.ziphttp://gallery.technet.microsoft.com/scriptcenter/Configuring-a-Windows-faecf7cb
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