Posted inGoodies Goodies | Microsoft Goodies | Windwos
Powerhslel: Renew Certificate with Specific Template
$templateName = 'RADIUS Template' $certSN = Get-ChildItem 'Cert:\LocalMachine\My' | Where-Object{ $_.Extensions | Where-Object{ ($_.Oid.FriendlyName -eq 'Certificate Template Information') -and ($_.Format(0) -match $templateName) }} | select-object SerialNumber certreq -enroll -machine -q…