Skip to content

Instantly share code, notes, and snippets.

View BradSherwin's full-sized avatar
👨‍🍳

Brad Sherwin BradSherwin

👨‍🍳
  • CorpTen International
  • UK
  • 01:34 (UTC +01:00)
View GitHub Profile
@BradSherwin
BradSherwin / Configure-SecureWinRM.ps1
Created November 16, 2023 12:19 — forked from bender-the-greatest/Configure-SecureWinRM.ps1
Configure WinRM to listen over SSL (port 5986) and use the web certificate generated by a certificate templated called 'WinRM'. Highly recommend reading Synopsis, Description, and Examples.
<#
.SYNOPSIS
Configures a secure WinRM listener over HTTPS to enable
SSL-based WinRM communications. This script has not been
tested on Windows Server 2003R2 or earier, and may not
work on these OSes for a variety of reasons.
If Windows Remote Management is disabled (e.g. service
stopped, GPO Policy, etc.), this script will likely fail.
.DESCRIPTION