How to Refresh the Compliance State of the SCCM computer clients

hi!

if you have machines that not update their compliance state on SCCM 2007… for example, 200 machines that not say what did with some update deployments… you can execute the following vbs:

http://msdn.microsoft.com/en-us/library/cc146437.aspx

Sub RefreshServerComplianceState()

    ' 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

    ' Output success message.
    wscript.echo "Ran RefreshServerComplianceState."

End Sub

Regards!

Anuncios