SCUG.dk
System Center User Group Denmark
Hide and Show software update notifications

As you might now; most agent settings are configured for the entire site. However with a little reading in the Configuration Manager SDK you will quickly learn how to customize agent setting on individual clients. One of the challenges that I run into the most; is hiding software update notifications from some clients while allowing a full notification on other computers.

You can solve this challenge in two different ways.

  1. Hide all software update deployments and create a package that will display notifications on some clients
  2. Allow software update notifications and create a package that will remove the notification on some clients.

Configure the Software Update Client Agent

In this example I will allow all notifications and create a package that will remove the notification icon on computers in a specific collection.

image

The package

The script to be used in the package can be downloaded from the ConfigMgr. SDK. You only need to modify the script to match your scenario. In my example I have configured the UserExperienceFlag to 2 which will remove any notifications.

To create the package

  1. Copy the code below and save it as a VBS file. 
  2. Create a new package with the VBS file
  3. Run the package under the local system account and without any user interaction on computers where you DON’T want any user notifications.
' //***************************************************************************
' // ***** Script Header *****
' //
' // Solution:  Config Mgr
' // File:      HideNotifications.vbs
' // Author:    Configuration Manager 2007 SDK, modified by Kent Agerlund
' // Purpose:   Remove software update notifications from the notification area
' // Values:    SetUserExperienceFlag| 0=Use Policy, 1=Always display notifications    
' // Values:    SetUserExperienceFlag| 2=Never display notifications    
' //
' // ***** End Header *****
' //***************************************************************************
'//----------------------------------------------------------------------------
'//
'//  Global constant and variable declarations
'//
'//----------------------------------------------------------------------------

dim updatesDeployment
    
set updatesDeployment = CreateObject ("UDA.CCMUpdatesDeployment")
updatesDeployment.SetUserExperienceFlag 2

Configure the Software update deployments

Make sure you configure a deployment deadline for those computers that don’t display software update notifications otherwise updates will never be installed.

You can download the ConfigMgr 2007 SDK from http://www.microsoft.com/downloads/details.aspx?familyid=064a995f-ef13-4200-81ad-e3af6218edcc&displaylang=en


Posted 02-19-2010 11:33 by Kent Agerlund
Copyright SCUG.dk
Powered by Community Server (Commercial Edition), by Telligent Systems