In this article i’ll share my experience when i stuck on update my configuration manager. My update stuck at prerequisite check passed and it does not proceed to installation phase. But i think this article will also helps if you stuck at any phase of updating your sccm. The method i use involved cmupdatereset tool and sql command.
How it happens?
This happens when i try to update configuration manager to 1910 Hotfix Rollup (KB4537079). Not really sure what’s the root cause. My CM was on version 1902. I skip 1906 and straight to 1910 which based on previous experience this is something that can be done. I manage to update 1910 with pre-production client deployment 5.00.8913.1012 . But i didn’t promote it to production and straight installing 1910 hotfix KB4537079 and set to deploy to pre-production. This with the idea of the pre-production will update to latest one 5.00.8913.1032 and i only need to do one time to promote to production for thousands of PC. Unfortunately, hotfix KB4537079 stuck at prerequisite check passed but not goes into installing state even after few hours. And i can’t even promote 8913.1012 to production.
update package will not install as it is marked for prereq check onlycmupdate.log
So i decided to start all over again with this update and i try to use this CMUpdateReset tool. This is where you can get it. Of course change it where applicable
D:\Program Files\Microsoft Configuration Manager\cd.latest\SMSSETUP\TOOLS\CMUpdateReset
There are 2 common command to use. Take note to run as admin
CMUpdateReset.exe -S SQLServerFQDN -D CM_SiteCode -P PackageGUID CMUpdateReset.exe -S myserver.invialgo.com -D CM_XXX -P xxx-xxx-xxx-xx
Below command will force delete the package
CMUpdateReset.exe -FDELETE -S SQLServerFQDN -D CM_SiteCode -P PackageGUID CMUpdateReset.exe -FDELETE -S myserver.invialgo.com -D CM_XXX -P xxx-xxx-xx
How to Get Package GUID
above command require you to have package GUID. In case you wondering, let me save your time. You can get it easily by adding column in Configuration Manager
Monitoring - updates and servicing status or Administration - Updates and servicing
Let’s get back to CMUpdateReset tool. If successful, restart SMS_Executive service will do. However if you unlucky like me, you hit below error
[ERROR] 0x80131500 Package is in post-replication state. CMUpdateReset.exe cannot reset the update.
[Error] 0x80131500 – Package is in post-replication state. CMUpdateReset.exe cannot reset the update. Please call CSS to resolve the issue.cmupdatereset.exe
i try multiple method when hit this error including retry content replication but it didn’t works. So i come across old method before cmupdatereset tool. This by executing directly on sql as below
DELETE FROM CM_UpdatePackages WHERE PackageGuid='xxxxx'
Restart SMS_Executive service.
At this point, the update package name will disappear from console. i realize this might leave some orphanage things. Since i want it clean, i run CMUpdateReset tool with FDelete. Same code as above
CMUpdateReset.exe -FDELETE -S myserver.invialgo.com -D CM_XXX -P xxx-xxx-xx
I restart SMS_Executive services and ‘check for updates’ from administration console. However i no longer able to see the updates that i delete just now even after multiple time check updates. What i did i run CMUpdateReset again but without FDelete this round. As i just want it like soft reset.
CMUpdateReset.exe -S myserver.invialgo.com -D CM_XXX -P xxx-xxx-xxx-xx
CMUpdateReset show success again. I restart SMS_Executive and ‘check for updates’
Finally, the updates already appear back with status ‘available’. I proceed to download and install as usual. I don’t check prerequisite again as I know i already passed previously. This round i manage to update.
Below log help me in troubleshoot the issue
I’m not an expert. I just share for my references and hope it helps others. If you have other method or solution, do leave comment. It may help me or other readers in future