Task Sequence Stuck - Enablement Package

Raman Katoch 41 Reputation points

Hi All,

I am trying to upgrade Windows 10 20H2 machines to 21H2 using the enablement package technique but a mandatory KB article is missing on machines. I am trying to install the patch on the machines using DISM command line from a package source using a task sequence. After the installation of the patch, it requires a reboot. I had the next step in my task sequence to reboot the machine, but the task sequence stuck and never perform the reboot.

Is there any other way we can force the reboot post-patch installation?

I tried various methods available in the task sequence, including PowerShell to force the reboot but no go. Is there any step you guys feel I should try to make it automated?

Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. Amandayou-MSFT 10,996 Reputation points


    Thanks for your update.

    If we have to install a CAB package in a silent mode with a later restart, use the following DISM command:
    start /wait DISM.exe /Online /Add-Package /PackagePath: c:\Temp\kb4056887\Windows10.0-KB4056887-x64.cab /Quiet /NoRestart

    Here is the article about dism command, refer to it:

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Raman Katoch 41 Reputation points


    0 comments No comments

  2. Amandayou-MSFT 10,996 Reputation points


    If we use DISM command line, we should choose to restart the computer to promise the update process is finished.


    To be easier, we could use schedule update in Operating system image, it can avoid this issue.


    Here is the related article, refer to it:

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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

  3. Raman Katoch 41 Reputation points

    Hello Amandayou-MSFT,

    Thanks for the reply, but it did not answer my question. All I want is to perform the reboot automatically after CU installation. It should not ask for the input, instead, it performs re-boot automatically. Please let me know if that is possible.

    0 comments No comments