Uninstall KB pending restart

Rafael Aguilar 496 Reputation points
2020-10-20T18:43:50.72+00:00

Hi, Team.

Can you uninstall a KB that has a pending restart? The kb was deployed and the server has pending restart of that KB

We want to uninstall it because it affected the operating system of some servers.

Thank you for your help

33785-image.png

33706-image.png

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,202 questions
Microsoft Configuration Manager Updates
Microsoft Configuration Manager Updates
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Updates: Broadly released fixes addressing specific issue(s) or related bug(s). Updates may also include new or modified features (i.e. changing default behavior).
969 questions
Microsoft Configuration Manager
{count} votes

Accepted answer
  1. Dave Patrick 426.1K Reputation points MVP
    2020-10-20T19:28:19.503+00:00

    Another method is to remove the folder softwaredistribution

    You could but this isn't going to reverse the effect of the update installer. The only solution is to let it complete by rebooting then run the uninstallation. In fact renaming or removing \softwaredistribution may be a problem for uninstall.

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-10-20T18:48:40.22+00:00

    You'll need to reboot then you can uninstall it.

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  2. Rafael Aguilar 496 Reputation points
    2020-10-20T18:57:42.793+00:00

    Thank you Patrick for responding.

    But being in that "pending restart" state you can do something? remove the restart, we don't want it to install and I want to remove the restart.

    Can you?

    0 comments No comments

  3. Dave Patrick 426.1K Reputation points MVP
    2020-10-20T19:03:31.847+00:00

    You may be able to remove the "RebootRequired" but in order to uninstall it you'll still need to reboot.
    https://devblogs.microsoft.com/scripting/determine-pending-reboot-statuspowershell-style-part-2/

    --please don't forget to Accept as answer if the reply is helpful--


  4. AllenLiu-MSFT 40,806 Reputation points Microsoft Vendor
    2020-10-21T03:12:27.45+00:00

    @Rafael Aguilar
    Thank you for posting in Microsoft Q&A forum.
    Normally, when we use "shutdown -a", the auto-shutdown schedule or task will be canceled automatically.
    Base on your situation, a reboot should be required before you uninstall it.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments