Installing/Configuring the Prerequisites
Both Systems
Make sure .NET Framework 4.0 or newer is installed.
Make sure Windows Management Framework (Windows PowerShell 3.0 and WinRM 3.0) or newer is installed.
Configure WinRM listener using 'winrm qc'.
System Hosting Exchange
In Internet Information Services (IIS) Manager:
Make sure Powershell virtual directory is configured to allow Windows Authentication.
System Hosting Agent
In Server Manager:
Under Roles, make sure Web Server (IIS) Role is installed, and the ASP.NET and IIS 6 Management Compatibility Role Services have been added to it.
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