title: Configure and listen successfully using WinRM in powershell
body: <p>I'm testing WinRM connection using Command Prompt on my local and remote machine and my question is devided into two parts.</p>
  
  <p>PART I</p>
  
  <p>I tested TCP/IP connectivity by using ping command to ping : IP Address of local computer and remote computer, default gateway and DNS Server and it runs perfectly on both local and remote computer. </p>
  
  <p>But when testing using WinRM commands, I used this command to locate listeners and addresses</p>
  
  <pre><code>winrm e winrm/config/listener
  </code></pre>
  
  <p>It gives me this output for my local machine</p>
  
  <pre><code>Listener
  Address = *
  Transport = HTTP
  Port = 5985
  Hostname
  Enabled = true
  URLPrefix = wsman
  CertificateThumbprint
  ListeningOn =&lt;IP Address&gt;,127.0.0.1, ::1,fe80::100:7f:fffe%13,fe80::803:5e43:50ef:c50%11
  </code></pre>
  
  <p>But the same command when I run on remote machine gives me an output with everything else the same, except</p>
  
  <pre><code>Listener[Source="GPO"]
  .
  .
  .
  ListeningOn=null
  </code></pre>
  
  <p>I want to configure it to make it listen correctly.</p>
  
  <p>PART II</p>
  
  <p>And when I run these commands one by one on my remote machine</p>
  
  <pre><code>winrm id -r:&lt;machine name&gt;
  winrm get winrm/config -r:&lt;machine name&gt;
  winrm get wmicimv2/Win32_Service?Name = WinRM -r:&lt;machine name&gt;
  </code></pre>
  
  <p>It gives a WSMan Fault with an error message as : </p>
  
  <pre><code>The client cannot connect to the destination specified in the request. Verify
  that the service on the destination is running and is accepting requests.Consult
  the logs and documentation for WS-Management service running on the destination,
  most commonly IIs or WinRM. If the destination is the WinRM service, run the 
  following command on the destination to analyse and configure the WinRM service:
  "winrm quickconfig". 
  </code></pre>
  
  <p>Whereas, same commands when I run on my local machine run correctly.</p>
  
  <pre><code>winrm id 
  winrm get winrm/config
  winrm get wmicimv2/Win32_Service?Name = WinRM
  </code></pre>
  
  <p>At most, all the problems I'm facing is on my remote machine.
  What is causing this to happen and how can I configure it to listen and connect successfully?
  Thank You.</p>
  
  <hr>
  
  <p>Part II, I am now able to run these on one of my other remote machines with correct output.</p>
  
  <p>I made some changes in this particular remote machine for which I had posted the question and so, it wouldn't run these commands until I fix the part I but besides that if nothing has been altered it will run just like it does on my other remote machines.</p>
  
  <p>I would still appreciate if someone could help me with part I in which I have to get rid of </p>
  
  <pre><code>Listener[Source=GPO]
  ..
  .
  ListeningOn=null
  </code></pre>
  
  <p>when I run the command </p>
  
  <pre><code>winrm e winrm/config/listener
  </code></pre>
  
  <p>because this is what is causing issues but I'm not sure how to disable/remove Group Policy Settings.</p>