Skip to content

Commit

Permalink
Update NetScaler-CertExpiration.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
xawen committed Feb 23, 2018
1 parent eec3f5f commit cd0a3e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NetScaler-CertExpiration.ps1
Expand Up @@ -9,7 +9,7 @@ $Credential = New-Object System.Management.Automation.PSCredential ($Username, $

$Session = Connect-Netscaler -Hostname $Nsip -Credential $Credential -PassThru

$CertResults = Get-NSSSLCertificate -session $Session | Where-Object {$_.certificatetype -eq "CLIENTANDSERVER_CERT"}
$CertResults = Get-NSSSLCertificate -session $Session | Where-Object {$_.certificatetype -eq "CLNT_CERT, SRVR_CERT"}

$FirstExpiration = 2000
foreach ($Result in $CertResults) {
Expand Down Expand Up @@ -46,4 +46,4 @@ foreach ($Result in $CertResults) {

Write-Host "</prtg>"

Disconnect-Netscaler
Disconnect-Netscaler

0 comments on commit cd0a3e3

Please sign in to comment.