Computer Certificate Expiration Check

Posted By Amir
Version: 1.3.4 Creator Name: Prakash Banuka Date Created: 2015-02-18 Date Modified: 2015-02-18 Scripting language: PS Download Count: 147 Checks for X.509 certificates in the LocalMachine store that will expire in a certain number of days. $threshold = $args[0] #Set deadline date $deadline = (Get-Date).AddDays($threshold) $Certs = Get-ChildItem Cert:\LocalMachine\My | where {$_.notafter -lt $deadline} | sel...

User Certificate Expiration Check

Posted By Amir
Version: 1.2.3 Creator Name: Prakash Banuka Date Created: 2015-02-18 Date Modified: 2015-02-18 Scripting language: PS Download Count: 115 Checks for X.509 certificates in the CurrentUser store that will expire in a certain number of days. $threshold = $args[0] #Set deadline date $deadline = (Get-Date).AddDays($threshold) $Certs = Get-ChildItem Cert:\CurrentUser\My | where {$_.notafter -lt $deadline} |  ...