To Configure PowerShell:
1) Enable PowerShell remoting.
– Launch PowerShell v2.0 as an administrator.
– Run the enable-PSRemoting cmdlet:
— Starts the WinRM service and sets the statup type to Automatic
— Enables a firewall exception for WS-Management communications
— Creates a listender to accept requests on any IP address

2) To trust all hosts, run the following from the command line:

Set-Item WSMan:\localhost\Client\TrustedHosts *

To Trust only restricted IP addresses, specific the addresses in place of the asterisk (*).

3) Restart WinRM by running the following from the command line:

Restart-Service winrm