Launch PowerShell in Admin mode, and type the following:
Enable-PSRemoting –force
Two things should happen:
(1) The WinRM service should be started
(2) WinRM firewall exception should be enabled
Notes
You may also need to run
winrm quickconfig
winrm s winrm/config/client ‘@{TrustedHosts=”TheComputerName”}’
Reference