Difference between revisions of "Prep Windows Host Scripts"
Jump to navigation
Jump to search
(Created page with "``` $HN="host1.example.com"; $TP=(Get-ChildItem -Path Cert:LocalMachine\MY | where Subject -like "CN=${HN}*").Thumbprint winrm delete winrm/config/Listener?Address=*+Transport...") |
(No difference)
|
Latest revision as of 18:07, 18 November 2023
$HN="host1.example.com"; $TP=(Get-ChildItem -Path Cert:LocalMachine\MY | where Subject -like "CN=${HN}*").Thumbprint winrm delete winrm/config/Listener?Address=*+Transport=HTTPS winrm create winrm/config/Listener?Address=*+Transport=HTTPS "@{Hostname=`"${HN}`"; CertificateThumbprint=`"$TP`"}"