Skip to content

Instantly share code, notes, and snippets.

@Dimtemp
Dimtemp / Certificate.ps1
Last active November 4, 2023 12:52
Check for certificate expiration
function Get-CertificateExpiration {
<#
.SYNOPSIS
Displays a list of certificates that will expire soon.
#>
param(
$Threshold = 30, #Number of days to look for expiring certificates
[string[]]$ComputerName