I have been tasked with setting up a compliance rule to check for the existence of a certificate in the trusted root of the corporate Windows 7 Desktops and remediate if possible.
I have been having difficulty trying to figure out how to accomplish this. I did find a link suggesting to use a powershell script but I seem to be getting very mixed results.
I have included the script below
If anyone has any idea's on how I can accomplish this or can point me in the right direction it would be appreciated.
This is the script I was trying with out reliable success:
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Hi
I have been tasked with setting up a compliance rule to check for the existence of a certificate in the trusted root of the corporate Windows 7 Desktops and remediate if possible.
I have been having difficulty trying to figure out how to accomplish this. I did find a link suggesting to use a powershell script but I seem to be getting very mixed results.
I have included the script below
If anyone has any idea's on how I can accomplish this or can point me in the right direction it would be appreciated.
This is the script I was trying with out reliable success:
$Compliance = 'Non-Compliant'
$Check = get-childitem -path cert:\localmachine -recurse | where-object {$_.Issuer -like '*Issuer*'}
If ($Check) {$Compliance = 'Compliant'}
$Compliance
Share this post
Link to post
Share on other sites