Windows WinRM quick guide

Check whether WinRM service is running

PS> Get-Service WinRM

Check already registered listeners

PS> winrm e winrm/config/listener

Create HTTPS listener

PS> winrm create winrm/config/Listener?Address=*+Transport=HTTPS @{Hostname="<YOUR_DNS_NAME>"; CertificateThumbprint="<COPIED_CERTIFICATE_THUMBPRINT>"}

Add firewall exception

PS> netsh advfirewall firewall add rule name="Windows Remote Management (HTTPS-In)" dir=in action=allow protocol=TCP localport=5986

Verify you can connect to the machine via HTTPS

PS> Enter-PSSession -Cn <YOUR_DNS_NAME> -UseSSL
  •  
  •  
  •  
  •   
  •  
  •  
  •  

Viet Luu has written 180 articles

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

We are thankful for your never ending support.

Leave a Reply