locked
SCCM Software Compliance not Showing updates installed. RRS feed

  • Question

  • When I look at the compliance logs it says that the Update is not installed but when I check the update handler log it shows that the update was installed.  Is there a way to force the information back to the server or is there a setting I need to check?
    Thursday, June 3, 2010 5:37 PM

Answers

  • Yes, you can force a full compliance scan by running this VB script:

     

    ' Initialize the UpdatesStore variable.
        dim newCCMUpdatesStore
       
    ' Create the COM object.
        set newCCMUpdatesStore = CreateObject ("Microsoft.CCM.UpdatesStore")

    ' Refresh the server compliance state by running the RefreshServerComplianceState method.
        newCCMUpdatesStore.RefreshServerComplianceState


    Kent Agerlund | http://scug.dk/members/Agerlund/default.aspx | The Danish community for System Center products
    • Proposed as answer by John Marcum Monday, June 7, 2010 3:30 PM
    • Marked as answer by TAiNiUM Tuesday, June 8, 2010 6:58 PM
    Thursday, June 3, 2010 6:13 PM

All replies

  • Yes, you can force a full compliance scan by running this VB script:

     

    ' Initialize the UpdatesStore variable.
        dim newCCMUpdatesStore
       
    ' Create the COM object.
        set newCCMUpdatesStore = CreateObject ("Microsoft.CCM.UpdatesStore")

    ' Refresh the server compliance state by running the RefreshServerComplianceState method.
        newCCMUpdatesStore.RefreshServerComplianceState


    Kent Agerlund | http://scug.dk/members/Agerlund/default.aspx | The Danish community for System Center products
    • Proposed as answer by John Marcum Monday, June 7, 2010 3:30 PM
    • Marked as answer by TAiNiUM Tuesday, June 8, 2010 6:58 PM
    Thursday, June 3, 2010 6:13 PM
  • Thank you Kent, worked perfectly for me :)

     

    But isn't there anyway to automate this?! I mean why do i have to rub this script for immediate status check?!

    Sunday, October 17, 2010 9:36 AM