Skip to content

Instantly share code, notes, and snippets.

@HainanZhao
Created September 8, 2020 07:09
Show Gist options
  • Select an option

  • Save HainanZhao/eb5fd5761dde68950af72fc442292625 to your computer and use it in GitHub Desktop.

Select an option

Save HainanZhao/eb5fd5761dde68950af72fc442292625 to your computer and use it in GitHub Desktop.
Create/Edit WinRM listners using HTTPS with SSL Certs
winrm enumerate winrm/config/listener
winrm delete winrm/config/Listener?Address=*+Transport=HTTPS
winrm create winrm/config/Listener?Address=*+Transport=HTTPS @{Hostname="*.yourdomain.com";CertificateThumbprint="XXXXXXXXXXXXXXXXXXXXXXXX"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment