My first post on the topic of Office365 regards a simple task, connecting to the Office365 portal using PowerShell.  First of all the assumptions;  You have an Office365 account and you have PowerShell installed.

Follow the instructions at the this page and install both the single sign-on add in and the PowerShell command-lets.  After that you can connect to your account by importing the MSOnline module or opening PowerShell with the module imported already from the start menu then following these steps;

Import-Module MSOnline

This will give you access to script against your account rather than the services specifically, you will be able to query and create accounts that are service wide.  For Exchange specific commands there is a different method required, the details of which can be found at the following page;

Install and Configure PowerShell
Connect to Office365 Exchange Services