Skip to content

Commit 59e3a8d

Browse files
authored
Update windows_winrm.rst (#2721)
Fix WinRM HTTPS Listener creation.
1 parent 1a86c51 commit 59e3a8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docsite/rst/os_guide/windows_winrm.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,20 +187,20 @@ Creating a HTTP listener can be done through the ``Enable-PSRemoting`` cmdlet bu
187187
}
188188
New-WSManInstance @listenerParams
189189
190-
Creating a HTTPS listener is similar but the ``Port`` is now ``5985`` and the ``CertificateThumbprint`` value must be set. The certificate can either be a self signed certificate or a certificate from a certificate authority. How to generate a certificate is outside the scope of this section.
190+
Creating a HTTPS listener is similar but the ``Port`` is now ``5986`` and the ``CertificateThumbprint`` value must be set. The certificate can either be a self signed certificate or a certificate from a certificate authority. How to generate a certificate is outside the scope of this section.
191191

192192
.. code-block:: powershell
193193
194194
$listenerParams = @{
195195
ResourceURI = 'winrm/config/listener'
196196
SelectorSet = @{
197-
Transport = "HTTP"
197+
Transport = "HTTPS"
198198
Address = "*"
199199
}
200200
ValueSet = @{
201201
CertificateThumbprint = 'E6CDAA82EEAF2ECE8546E05DB7F3E01AA47D76CE'
202202
Enabled = $true
203-
Port = 5985
203+
Port = 5986
204204
}
205205
}
206206
New-WSManInstance @listenerParams

0 commit comments

Comments
 (0)