Print View

MDT Failure 5627 Deploying Windows Server 2019/2022

Issue

When deploying Windows Server 2019/2022 using Microsoft Deployment Toolkit, the deployment may error after installing the operating system:

FAILURE ( 5627 ): -2146498536  0x800F0818: Run DSIM.exe
Litetouch deployment failed, Return Code = -2147467259  0x80004005
Failed to save environment to  (80070057)
Failed to run the action Install Operating System.
Unknown error (Error: 000015FB; Source: Unknown)
The execution of the group (Install) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows)
Failed to run the last action: Install Operating System. Execution of task sequence failed.
Unknown error (Error: 000015FB; Source: Unknown)
Task Sequence Engine failed! Code: enExecutionFail
Task sequence execution failed with error code 80004005
RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram
GetTsRegValue() is unsuccessful. 0x80070002.
Error Task Sequence Manager failed to execute task sequence. Code 0x80004005


The same issue is not seen with Windows Server 2016.

Resolution

For the task sequence tasks of the type Install Updates Offline (typically Apply Patches) set the Selection Profile to Nothing.

Note: There may be multiple tasks that require updated in a single task sequence.

References

Products

Microsoft Windows Server 2022 (any)
Microsoft Windows Server 2019 (any)
Microsoft Deployment Toolkit 6.3.8456.1000

Created: 21st January 2022
Updated: 21st January 2022

Print View

© 2005-2024 Jamie Morrison