SCCM 2111 and upgrading windows 10 Enterprise 21H2 to Windows 11 Enterprise 21H2

PerserPolis-1732 1,971 Reputation points
2022-01-14T12:18:32.77+00:00

Hi,

I am trying to upgrade windows 10 21H to Windows 11 21H using sccm 2111 Task sequence.
I get during installation the error code 0X80004005. If checked the smsts log file, I can see the following errors

Failed to delete previous value SetupProgress of reg key SYSTEM\Setup\MoSetup\Volatile
Failed to run the action: Upgrade Operating System. Error -2147467259
The execution of the group (Upgrade the Operating System) has failed and the execution has been aborted. An action failed. Error 0x80004004
Failed to run the last action: Upgrade Operating System. Result -2147467259. Execution of task sequence failed.

165077-taskseq1.png

165124-taskseq.png

Community Center | Not monitored
0 comments No comments
{count} votes

Accepted answer
  1. Amandayou-MSFT 11,156 Reputation points
    2022-01-18T06:38:33.227+00:00

    Hi @PerserPolis-1732 ,

    We could add the command line before the step of prepare for upgrade, please refer to the following screenshot:

    165780-1182.png

    And after deploying, the value has been changed.

    165786-1183.png

    About add it in my TS a Registry entry, refer to the article:
    https://msitpros.com/?p=1031
    Note: Non-Microsoft link, just for the reference.


    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 additional answers

Sort by: Most helpful
  1. Amandayou-MSFT 11,156 Reputation points
    2022-01-17T06:19:33.023+00:00

    Hi @PerserPolis-1732 ,

    Please try to manually upgrade without sccm to check if it is successful. If not, it maybe related with Windows.

    Failed to delete previous value SetupProgress of reg key SYSTEM\Setup\MoSetup\Volatile

    Based on the below link the failure is due to an encrypted file present in the system user profile which failed the whole upgrade process, if we move the file or delete it may succeed after a system reboot.

    Executing setupdiag helps on identifying the issue on some machine along with the above workaround.
    https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--6000-8199-


    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

  2. PerserPolis-1732 1,971 Reputation points
    2022-01-17T08:06:06.197+00:00

    Hi

    I can upgrade windows 11 without sccm.
    I can guess it is the by checking the hardware from windows 11. Could you tell me please how I can add in my TS a Registry entry?

    the following entry

    in the "HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup"
    add a "DWORD 32 Value"

    Named: "AllowUpgradesWithUnsupportedTPMOrCPU"

    With the entry I can pass the CPU check of from Windows 11

    Thanks

    0 comments No comments

  3. Anonymous
    2024-04-13T14:30:15.86+00:00

    Facing the same issue in our company environment, will try to implement the same step in our test task sequence and then will see the results.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.