Forum Discussion
Dominique
4 years agoAdvisor
Quote| Select-Object { `
$_.Thumbprint + "##" `
+ $_.Issuer + "##" `
+ $_.Subject + $_.Issuer + "##" `
+ "##" `
+ "cert.issuer=" + $_.Issuer `
+ "&cert.friendlyname=" + $_.FriendlyName `
+ "&cert.serialnumber=" + $_.SerialNumber `
+ "&cert.thumbprint=" + $_.Thumbprint `
+ "&cert.issuerby=" + {(($_.Issuer -split ",") |? {$_ -like "CN=*"}) -replace "CN="} `
+ "&cert.days=" + {($_.NotAfter - [datetime]::Today).Days} `
It works for me in the Collector Attribute Script but does not work in the Active Discovery Script...
I don't get the field split available in my report or in the device info...
I tried also the days to expire and I have the same issue as well...
Related Content
- 4 months ago
- 4 years ago