Software updates stuck on pending system restart RRS feed

All replies

  • Is the scan successful completed on client machine.

    Execute the below power shell script on the machine and monitor updatesstores.log and check if its refresh update compliance to site server

    $SCCMUpdatesStore = New-Object -ComObject Microsoft.CCM.UpdatesStore $SCCMUpdatesStore.RefreshServerComplianceState() New-EventLog -LogName Application -Source SyncStateScript -ErrorAction SilentlyContinue

    Wednesday, January 22, 2020 11:57 AM
  • Error message 

    New-Object : A positional parameter cannot be found that accepts argument '$null'.
    At line:2 char:21
    + ... atesStore = New-Object -ComObject Microsoft.CCM.UpdatesStore $SCCMUpd ...
    +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [New-Object], ParameterBindingException
        + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.NewObjectCommand

    Wednesday, January 22, 2020 12:34 PM
  • Can you try this

    $UpdatesStore = New-Object -ComObject Microsoft.CCM.UpdatesStore $UpdatesStore.RefreshServerComplianceState()

    Source -

    Wednesday, January 22, 2020 2:25 PM
  • Hi,

    We can firstly run a Powershell command to check if "RebootPending" is true or false:
    Invoke-WmiMethod -Namespace "ROOT\ccm\ClientSDK" -Class CCM_ClientUtilities -Name DetermineIfRebootPending

    If "RebootPending" is false, it indicates that clients were not reporting accurate data in their SCCM compliance reports.
    We can refresh state messages in SCCM by the following guidance:


    Please remember to mark the replies as answers if they help.

    If you have feedback for TechNet Subscriber Support, contact

    • Proposed as answer by veera0918 Tuesday, February 4, 2020 8:13 AM
    Thursday, January 23, 2020 5:59 AM
  • Still stuck on pending system restart (kb4523204) 22/11/2019
    Thursday, January 23, 2020 9:27 AM
  • Yes the RebootPending is false - I have try these script below but still stuck on pending reboot.

    Sub RefreshServerComplianceState()
    dim newCCMUpdatesStore
    set newCCMUpdatesStore = CreateObject ("Microsoft.CCM.UpdatesStore")
    wscript.echo "Ran RefreshServerComplianceState."
    End Sub

    And this 

    $SCCMUpdatesStore = New-Object -ComObject Microsoft.CCM.UpdatesStore
    New-EventLog -LogName Application -Source SyncStateScript -ErrorAction SilentlyContinue
    Write-EventLog -LogName Application -Source SyncStateScript -EventId 555 -EntryType Information -Message "Sync State ran successfully"

    Thursday, January 23, 2020 9:30 AM