Skip to content

Instantly share code, notes, and snippets.

@lostyzen
lostyzen / configure-ansibletarget.ps1
Created February 26, 2020 10:35 — forked from trondhindenes/configure-ansibletarget.ps1
Configure Windows 2008R2/2012/2012R2 for SSL-based remoting
Param (
[string]$SubjectName = $env:COMPUTERNAME,
[int]$CertValidityDays = 365,
$CreateSelfSignedCert = $true
)
#region function defs
Function New-LegacySelfSignedCert
{