Skip to content

Instantly share code, notes, and snippets.

mincaeuro

Block or report user

Report or block mincaeuro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View powershell-certificates-check
# filter expired cert with "UBS" in Issuer:
Get-ChildItem cert:\ -Recurse | Where-Object {$_ -like "*UBS*" -and $_.NotAfter -lt (Get-Date)} | Select-Object -Property Issuer
# or only by keyword "UBS":
Get-ChildItem cert:\ -Recurse | Where-Object {$_ -like "*UBS*"} | Select-Object -Property Issuer, NotAfter
# run 1st cmd to check the result, if its OK you can remove it:
You can’t perform that action at this time.