3

I have issues where the configuration manager CAS server is showing the clients as "Pending System Restart". When you look at the client it's referring to, it shows the status as having been sent, and no status of restarting pending is shown in the registry (client was restarted anyway).

Re-running the summarization and refreshing has not worked over a period of hours.

enter image description here

The client log (server1) files below: enter image description here

Is there any way to clear the client status on the CAS server, and is there a fault with the Management Points in not passing on the status messages?

alx9r
  • 1,643
  • 3
  • 16
  • 37
Mark
  • 93
  • 1
  • 1
  • 7

2 Answers2

2

Found a script that does fix the issue most of the time. This was buried in the SCCM 2012 unleashed book.

Copy this to .vbs, run it on the client machine having issues. Then restart the sms service and re-run your cycle (software update, etc).

That should force it to recheck it's check state.

' 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."
Mark
  • 93
  • 1
  • 1
  • 7
2

To build on Mark's answer, you can this:

Invoke-Command -ComputerName $ComputerName -AsJob {(New-Object -ComObject Microsoft.CCM.UpdatesStore).RefreshServerComplianceState()}
CircaLucid
  • 121
  • 2