Configuration Manager 2012 Compliance Baseline to Disable Microsoft Silverlight Automatic Updates

Posted: August 7, 2014 in System Center Configuration Manager 2012
Tags: , ,

In this post I’m not going to explain how to create a Compliance Item and Baseline for that you can review this post; Configuration Manager 2012 Compliance Baseline to Disable Adobe Air Automatic Updates.

Below you will find scripts for Discovery and Remediation of Microsoft Silverlight automatic updates.

<#
  This script will check if automatic updates is disabled and return a Compliant/Non-Compliant string.

  Created:     04.08.2014
  Version:     1.0
  Author:      Odd-Magne Kristoffersen
  Homepage:    https://sccmguru.wordpress.com/
    
  References:
  - Group Policy Settings 
    http://www.microsoft.com/GetSilverlight/resources/documentation/grouppolicysettings.aspx#AutomaticUpdate
#>

$Status = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Silverlight\').UpdateMode

if($Status -eq 2)
    {Write-Host 'Compliant'}
    else
    {Write-Host 'Non-Compliant'}
<#
  This script will disable automatic updates if it is enabled.

  Created:     04.08.2014
  Version:     1.0
  Author:      Odd-Magne Kristoffersen
  Homepage:    https://sccmguru.wordpress.com/
    
  References:
  - Group Policy Settings 
    http://www.microsoft.com/GetSilverlight/resources/documentation/grouppolicysettings.aspx#AutomaticUpdate
#>

Set-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Silverlight\' -Name UpdateMode -Value 2 -Force

You can also download the scripts here: Compliance Settings Scripts

Advertisements
Comments
  1. Jesper Holm says:

    I had to make a modification to your script, maybe a newer version of silverlight changed this setting, but i had to change the registry location from HKLM to HKCU to change the update setting to never look for updates.
    this works when i run the power-shell command direct from the PC, but the remediation does either not run or it fails, the compliance shows as non-compliant, and never gets corrected when run from sccm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s