WinRM HTTPS Listener

This is an old revision of the document!


WinRM HTTPS Listener

Identify Suitable Certificates

PS C:\> Get-ChildItem -Path "Cert:\LocalMachine\My" | Select-Object -Property Thumbprint,DnsNameList,EnhancedKeyUsageList

Thumbprint                                  DnsNameList               EnhancedKeyUsageList
----------                                  -----------               --------------------
95B5F861C9495942C7D38FF570611F128F36CA75    {mars01.mueller.world}    {Server Authentication (1.3.6.1.5.5.7.3.1)}

Create Listener

PS C:\Users\Administrator> New-Item -Path "WSMan:\localhost\Listener" -Transport "HTTPS" -Address "*" -CertificateThumbPrint "95B5F861C9495942C7D38FF570611F128F36CA75" -Force

WSManConfig: Microsoft.WSMan.Management\WSMan::localhost\Listener

Type            Keys                                Name
----            ----                                ----
Container       {Transport=HTTPS, Address=*}        Listener_1305953032

Windows Firewall

windows/powershell/winrm-https-listener.1777285849.txt.gz · Last modified: 2026/04/27 10:30