Winrm enable https 5986

From UVOO Tech Wiki
Revision as of 01:25, 7 November 2023 by Busk (talk | contribs) (Created page with "``` $HN="myhost.example.com"; $TP=(Get-ChildItem -Path Cert:LocalMachine\MY | where Subject -like "CN=${HN}*").Thumbprint winrm create winrm/config/Listener?Address=*+Transpor...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
$HN="myhost.example.com";
$TP=(Get-ChildItem -Path Cert:LocalMachine\MY | where Subject -like "CN=${HN}*").Thumbprint
winrm create winrm/config/Listener?Address=*+Transport=HTTPS "@{Hostname=`"${HN}`"; CertificateThumbprint=`"$TP`"}"