Jump to content


  • 0
Xpdite

SCCM 2012 Compliance Settings

Question

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

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

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.