A few steps to enable management of your Office 365 subscription using Powershell. One uses Powershell because not all configuration is available through the Office 365 Portal, and it's also useful for automation.
Note that the old method of installing the Azure Active Directory Module is deprecated. The only supported way is to install the cmdlets directly through Powershell, as described below.
UPDATE (2018-07-09): removed all deprecated information.
UPDATE (2016-04-20): updated links and information.
Download and install the Microsoft Online Services Sign-In Assistant.
Download and install Windows Management Framework 5.1.
Open an elevated Powershell, and run the following comma ...