Skip to content
FIX: SCCM Task Sequence Run Command line Create Process Failed Code 0X80070002

FIX: SCCM Task Sequence Run Command line Create Process Failed Code 0X80070002

Written By Jitesh Kumar
Last Updated November 30, 2022
Posted In SCCM
SHARE

Let’s see how you can FIX SCCM Task Sequence Failed to run command line SCCM Task Sequence Run Command line Create Process Failed Code 0X80070002. This error code prompt when the task sequence fails to execute steps during operating system deployment with Configuration Manager.

The Run Command line Create Process Failed error 0X80070002 Translate SCCM Error Codes to Error “The system cannot find the file specified”. This is often seen when the specified command run in the task sequence step doesn’t execute the command.

You can learn how to add Run Command Line Step to SCCM Task Sequence. The command line added to the SCCM task sequence must be installed silently when you decide to add it during the OS deployment. This option helps SCCM Admin perform various operations easily during the operating system deployment with the Task sequence.

Issue Summary – Create Process Failed Code 0X80070002

This error task sequence failed to Task Sequence Run Command line Create Process Failed.Code (0X80070002) appears during the operating system deployment when the SCCM task sequence tries to execute the added run command line steps to run the command.

Patch My PC

It’s best to examine the SMSTS.log to troubleshoot OSD-related problems, learning to read SMSTS.log is very important, and being aware of the location of SMSTS log files for different phases of deployment. More you can explore SCCM OSD Task Sequence Troubleshooting Steps by Step Ultimate Guide SMSTS.log.

Task Sequence fails with the error message if the step is not selected continue on error. Here’s the highlight from the SMSTS.log –

SCCM Task Sequence Run Command line Create Process Failed.Code 0X80070002
SCCM Task Sequence Run Command line Create Process Failed.Code 0X80070002
Executing command line: Run command line
CreateProcess failed. Code(0x80070002)
Command line execution failed (80070002)
Failed to execute command line 'Default Apps.cmd'.The system cannot find the file specified. (Error: 80070002; Source: Windows)
Install Software failed to run command line, hr=0x80070002 

FIX – SCCM Task Sequence Run Command line Create Process Failed.Code 0X80070002

Let’s check the possible solution to fix the Run Command line Create Process Failed.Code 0X80070002.

  • In the Configuration Manager console, go to the Software Library workspace, expand Operating Systems, and then select the Task Sequences node.
  • In the Task Sequence list, select the deployed task sequence that you want to edit. Select Edit to modify.
  • Locate the steps and validate the command line added to steps and syntax. If you have added any path inside or directly to the command line, Make sure to start with cmd /c and add double quote inside file name to avoid the space between them. For Example – cmd /c “Default Apps.bat”
SCCM Task Sequence: Run Command line Create Process Failed
SCCM Task Sequence: Run the Command line

Important – It’s always recommended to test the script manually before directly adding to the task sequence step. This will help you to perform a smooth deployment and ignore any further issues.

Author

About Author -> Jitesh has over 5 years of working experience in the IT Industry. He writes and shares his experiences related to Microsoft device management technologies and IT Infrastructure management. His primary focus area is Windows 10 Deployment solution with Configuration Manager, Microsoft Deployment Toolkit (MDT), and Microsoft Intune.

Written by

Jitesh has over 5 years of working experience in the IT Industry. He writes and shares his experiences related to Microsoft device management technologies and IT Infrastructure management. His primary focus area is Windows 10 Deployment solution with Configuration Manager, Microsoft Deployment Toolkit (MDT), and Microsoft Intune.

Discussion

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Intune

2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

AC Anoop C Nair 10 min read
Intune

2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

AC Anoop C Nair 8 min read
SCCM

ConfigMgr 2603 Introduces New Early Update Enrollment Process

Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

AC Anoop C Nair 3 min read