Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, January 22, 2020 11:25 AM
Software updates stuck on pending system restart. evening though I have restart the system a few times
How do I clear this message?
Thank you.
All replies (6)
Wednesday, January 22, 2020 11:57 AM
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 12:34 PM
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 2:25 PM
Can you try this
$UpdatesStore = New-Object -ComObject Microsoft.CCM.UpdatesStore
$UpdatesStore.RefreshServerComplianceState()Source - https://support.microsoft.com/en-us/help/4459394/description-of-state-messaging-in-system-center-configuration-manager
Thursday, January 23, 2020 5:59 AM
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:
/en-us/archive/blogs/scotts-it-blog/refreshing-state-messages-in-system-center-configuration-manager-2012
Regards,
Allen
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Thursday, January 23, 2020 9:27 AM
Still stuck on pending system restart (kb4523204) 22/11/2019
Thursday, January 23, 2020 9:30 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")
newCCMUpdatesStore.RefreshServerComplianceState
wscript.echo "Ran RefreshServerComplianceState."
End Sub
And this
$SCCMUpdatesStore = New-Object -ComObject Microsoft.CCM.UpdatesStore
$SCCMUpdatesStore.RefreshServerComplianceState()
New-EventLog -LogName Application -Source SyncStateScript -ErrorAction SilentlyContinue
Write-EventLog -LogName Application -Source SyncStateScript -EventId 555 -EntryType Information -Message "Sync State ran successfully"