Amazon Cyber Monday deals See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Fix SCCM Task Sequence Error 0x80070057 UEFI Partition

Encountering the 0x80070057 error during an SCCM task sequence on UEFI systems can halt your deployment process, causing frustration and delays. This error typically indicates a problem with disk partitioning, often linked to incorrect partitioning scripts, BIOS/UEFI mismatches, or misconfigured disk settings. Fixing this error ensures your task sequence proceeds smoothly, enabling successful OS deployment across UEFI-based devices. Before you begin, ensure you have access to the target machine, administrator rights, and the necessary boot media or deployment tools.

What You’ll Need

  • Access to the SCCM Console with administrative privileges
  • Bootable media (USB or ISO) for Windows PE or Windows installation media
  • Knowledge of UEFI and disk partitioning concepts
  • Optional: Disk management tools like DiskPart

Step-by-Step

  1. Boot the target device into the SCCM WinPE environment. This is typically done via PXE boot or boot media created for deployment.
  2. Once in WinPE, open Command Prompt. You can do this from the SCCM boot menu or by pressing Shift+F10 during deployment.
  3. Identify the disk where the OS will be installed by running:
    diskpart
    list disk

    Ensure you select the correct disk, usually Disk 0, by running:

    select disk 0
  4. Clean the disk (this will erase all data, so proceed only if data backup is confirmed):
    clean
  5. Convert the disk to GPT format suitable for UEFI:
    convert gpt
  6. Create the EFI system partition, MSR, and primary partition. For example:
    create partition efi size=100
    format fs=fat32 quick
    assign letter=S
    
    create partition msr
    
    detail partition
    
    create partition primary
    format fs=ntfs quick
    assign letter=C
    
  7. Exit DiskPart:
    exit
  8. Modify your task sequence to ensure it correctly creates and formats these partitions during deployment. Double-check the partitioning steps in your task sequence script or custom scripts to match this setup.
  9. Re-run the task sequence. It should now recognize the proper partitions and avoid the 0x80070057 error.
  10. If errors persist, review the task sequence logs (smsts.log) for specific partitioning or disk errors. Adjust scripts accordingly.

Common Mistakes

  • Using BIOS/MBR partitioning instead of GPT for UEFI deployments.
  • Not formatting or creating the EFI partition, leading to missing EFI system partition errors.
  • Incorrect disk selection, especially if multiple disks are present.
  • Skipping the disk clean command, which can cause partition conflicts.
  • Failing to update the task sequence to reflect new partitioning steps.

Tips

  • Always back up data before disk operations like clean or format.
  • Verify your task sequence scripts or custom steps to match UEFI requirements.
  • Use DiskPart commands carefully; a wrong command can wipe the wrong disk.
  • Test the process on a single device before mass deployment.
  • Ensure your BIOS is set to UEFI mode and Secure Boot is configured as needed.

Troubleshooting

If the error persists after following the above steps, consider the following troubleshooting tips:

  • Review the smsts.log file located in X:\Windows\Temp\SMSTSLog\ or via the MDT/ConfigMgr log viewer. Look for partitioning or disk errors.
  • Confirm that your task sequence includes steps to create and format the EFI partition. Sometimes, custom scripts may override default behavior.
  • Check BIOS/UEFI settings: Ensure Secure Boot is enabled or disabled as required, and that the firmware is set to UEFI mode, not Legacy BIOS.
  • Test disk health and compatibility. A failing or incompatible disk can cause partitioning issues.
  • Try manually partitioning the disk with DiskPart outside the task sequence to verify commands work as intended.
  • Update your SCCM boot images to include the latest drivers and scripts for UEFI systems.

If none of these steps resolve the issue, consider recreating the task sequence from scratch or consulting vendor-specific documentation for your hardware model.

Frequently Asked Questions

1. Why does this error only occur on UEFI systems?

Because UEFI systems require a GPT partition style and specific EFI system partitions, whereas legacy BIOS systems use MBR. Incorrect partitioning scripts can cause errors during deployment on UEFI systems.

2. Can I fix this error without re-creating the task sequence?

Yes, if the issue is with partitioning, manually fixing the disk with DiskPart or editing the task sequence to include proper partition steps can resolve the error without a full re-creation.

3. What is the role of the EFI partition in UEFI deployment?

The EFI partition stores the bootloaders and configuration files necessary for UEFI firmware to start the operating system. Missing or misconfigured EFI partitions cause boot failures and errors.

4. Do I need to disable Secure Boot during deployment?

Secure Boot can sometimes interfere with deployment, especially if the OS or boot images are not signed. Check your hardware and deployment requirements; disabling Secure Boot may help during troubleshooting.

5. How can I verify the disk partitioning after running DiskPart?

Use the command ‘list partition’ within DiskPart to verify that the EFI, MSR, and primary partitions are correctly created and formatted according to UEFI standards.

6. Is there a way to automate correct partitioning for multiple devices?

Yes, include DiskPart scripts within your task sequence or use custom scripts that automate partition creation, formatting, and assignment to ensure consistency across deployments.

Fixing SCCM task sequence errors related to UEFI disk partitioning can be complex, but with careful disk management, correct partition setup, and proper task sequence configuration, you can overcome the 0x80070057 error and ensure smooth OS deployment on UEFI devices. Remember to test your deployment process thoroughly in a controlled environment before mass rollout to prevent data loss or further errors.

Fix SCCM Task Sequence Error 0x80070057 UEFI Partition
Scroll to top