Installing/Configuring the Prerequisites
If running a version of Windows Server 2008R2:
Download and install .NET Framework 4.0 or higher.
Download and install Windows Management Framework (Windows PowerShell 3.0 and WinRM 3.0) or newer is installed.
Download and install both Microsoft Online Services Sign-In Assistant and MSOnline PowerShell for Azure Active Directory.
If Sharepoint Online support is desired, download and install Sharepoint Online Management Shell.
In Server Manager (2008R2):
Under Roles, make sure Web Server (IIS) Role is installed, and ASP.NET have been added to it.
Under Role Services, make sure IIS 6 Management Compatibility has been added
In Server Manager (2012):
Under Roles, select Web Server (IIS)
Under Features, make sure the all the .NET Framework 4.5 features are installed.
Under Role Services, make sure IIS 6 Management Compatibility has been added
In Internet Information Services (IIS) Manager:
Configure the IIS site that will host the service (can use the default website). It is strongly recommended that the site is configured to support or even require HTTPS connections.
Ensure ASP.NET is registered with IIS by running ”%WINDIR%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i”
In the Office 365 admin panel, validate that the account being used by the agent holds the Global Administrator role (required to retrieve/submit information through remote power shell calls)