Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 4.0 » New-CertificateNotificationTask

New-CertificateNotificationTask - Powershell 4.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

New-CertificateNotificationTask

Short description
Creates a new task in the Task Scheduler that will be triggered when a certificate is replaced, expired, or about to expired.

Syntax


Description
The New-CertificateNotificationTask cmdlet creates a new task in the Task Scheduler that will be triggered when a 
certificate is replaced or expires. The task will launch the script specified by the PSScript parameter.


If the RunTaskForExistingCertificates parameter is specified, then after this cmdlet is registered, the cmdlet will go 
through all certificates (including archived certificates) in the My store and initiate Replace events for all 
certificates with a Renewal property. The NewCertHash value will always be the one at the end of the renewal chain. 
For example; if certificate A was renewed to certificate B, which was then renewed to certificate C, then the cmdlet 
fires two events: certificate A to certificate C and certificate B to certificate C. This will ensure that 
applications that are still using old certificates are properly updated to the newest certificates. If any certificate 
has a renewal chain longer than 20, then the certificate is not logged.