Check out the help for winrm (by the way, this is Windows exe, not the Powershell command):
> winrm help quickconfig Windows Remote Management Command Line Tool winrm quickconfig [-quiet] [-transport:VALUE] [-force] Performs configuration actions to enable this machine for remote management. Includes: 1. Start the WinRM service 2. Set the WinRM service type to auto start 3. Create a listener to accept request on any IP address 4. Enable firewall exception for WS-Management traffic (for http only)
Your remote computers may have a subset of 4 steps, but not all of them at once until you run the utility. In particular, the configuration of the listener has given me problems in the past. You can check the listener configuration before / after using below (run as administrator in a remote box):
dir wsman:\localhost\listener
You can also try running Enable-PSRemoting (should be run as admin), which will include additional logging.
source share