Prajwal Desai

SCCM | ConfigMgr | Intune | Windows 11 | Azure

  • Home
  • Cloud
    • Autopilot
    • Azure
    • Endpoint Analytics
    • Intune
    • PowerShell
    • Teams
    • Windows 365
  • Microsoft
    • Active Directory
    • Group Policy
    • SCCM
    • SCOM
    • Windows 10
    • Windows 11
    • Windows Server
    • WSUS
  • Software
  • Forums
  • Newsletter
  • Contact
Notification Show More
Latest News
Fix Windows Autopilot Reset Error 0x80070032
Fix Windows Autopilot Reset Error 0x80070032
Autopilot Intune
Windows activation error 0xc004c020
Fix: Windows Activation Error 0xC004C020 with 2 Easy Methods
Windows 11 Windows 10
Find the Package ID of SCCM Application
3 Best Ways to Find the Package ID of SCCM Application
SCCM
SCCM Updates Install Error 0x800b0109 0x8024b303
Fix: SCCM Updates Install Error 0x800b0109 | 0x8024b303
SCCM
Disable Windows Hello for Business using Intune ftimg
Disable Windows Hello for Business using Intune – Comprehensive Guide
Intune Autopilot
Aa

Prajwal Desai

SCCM | ConfigMgr | Intune | Windows 11 | Azure

Aa
Search
  • Home
  • Cloud
    • Autopilot
    • Azure
    • Endpoint Analytics
    • Intune
    • PowerShell
    • Teams
    • Windows 365
  • Microsoft
    • Active Directory
    • Group Policy
    • SCCM
    • SCOM
    • Windows 10
    • Windows 11
    • Windows Server
    • WSUS
  • Software
  • Forums
  • Newsletter
  • Contact
Follow US

Home » SCCM » Task Sequence has failed with the error code 0x80220005

SCCM

Task Sequence has failed with the error code 0x80220005

By Prajwal Desai 1 View 13 comments October 9, 2021 3 Min Read

Task Sequence has failed with the error code 0x80220005 – Recently I had created a task sequence to deploy Windows 7 Enterprise using SCCM, one of the SCCM engineer reported an OSD issue.

The task sequence failed with an error, Task Sequence has failed with the error code 0x80220005. The issue was reported in a remote site which had a distribution point serving that site. All the task sequence content was available on the distribution point.

So far the task sequence was successfully imaging the machines, but this time it failed. The next step was to examine the log files to begin troubleshooting this issue.

I asked the SCCM engineer to check at what step the task sequence failed. I also asked him to send me the SMSTS.log file. Upon examining the SMSTS.log file I found the below error in the smsts.log file –

- Advertisement -
Ad image

Error – Failed to open the Task Sequencing Environment. Code 0x80220005. Please ensure you are running this executable inside a properly configured OS Deployment task sequence.

Deployment task sequence.
Unknown error Error: 80220005; Source: Unknown
Exiting with return code 0x80220005
Process completed with exit code 2149711877

Task Sequence has failed with the error code 0x80220005

This task sequence has failed with error code 0x80220005 is often seen when automating the computer name by defining variables inside the task sequence.

Task Sequence has failed with the error code 0x80220005

Solution – During the initial steps of the task sequence, the engineer was supposed to enter the computer name. This option was configured to make it easy for the engineer to provide a computer name of his choice and to avoid the system to auto-generate a random computer name which begins with MININT for the computer.

When asked on what computer name did he enter, he mentioned that he entered BALTRAJMANSOUR01. If you notice the computer name, it’s longer than 15 characters.

We know that the 16th character is always reserved to identify the functionality that is installed on the registered network device.

Upon entering the computer name of less than 15 characters, the OSD was successful. This fixed task sequence failed with error code 0x80220005. I hope this post helps you. If you have any questions, let me know in the comments section.

Sign Up For Weekly Newsletter

Get the most recent information on Configuration Manager, Intune, Windows 11, Windows 365, Autopilot, Azure, Software Reviews, and much more by subscribing to the newsletter.
By signing up, you agree and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share this Article
Facebook Twitter Copy Link Print
Avatar photo
By Prajwal Desai
Follow:
Prajwal Desai is a Microsoft MVP in Enterprise Mobility. He writes articles on SCCM, Intune, Configuration Manager, Microsoft Intune, Azure, Windows Server, Windows 11, WordPress and other topics, with the goal of providing people with useful information.
Previous Article keyboards desk Cannot Connect to the Application Server
Next Article Mac kby Task Sequence has failed with the error code 0x80070070
13 Comments 13 Comments
  • Avatar photo Danielle says:
    October 30, 2019 at 9:38 pm

    Hi Prajwal. I’m getting this same error trying to image a VM, only the machine name is 14 characters. Any other ideas?

    Reply
  • Avatar photo Kardo Ameen says:
    July 17, 2019 at 9:13 pm

    Thank you so much. Saved alot of time and effort.

    Reply
  • Avatar photo Razan says:
    July 11, 2019 at 5:38 pm

    Same occurs if you do not have the right access to add or move computers in AD

    Reply
  • Avatar photo Greg Dennison says:
    May 7, 2019 at 7:15 am

    Prajwal saves the day again! Keep up the great work!

    Reply
  • Avatar photo Mills says:
    January 25, 2019 at 2:34 am

    Problem solved! Thanks!

    Reply
  • Avatar photo Marcin K. says:
    April 25, 2018 at 10:57 am

    Google > “sccm 0x80220005” > Prajwal’s site > problem solved. Total time 30 sec. Thnx alot 🙂

    Reply
    • Avatar photo Prajwal Desai says:
      April 28, 2018 at 11:36 pm

      Cool 🙂

      Reply
  • Avatar photo John says:
    March 21, 2018 at 3:57 pm

    Sorted my problem. Thank you!

    Reply
  • Avatar photo Dave says:
    October 14, 2017 at 3:34 am

    Jacob if you hit F8 you will get a command prompt window and you can copy it to a USB drive. Depending on what stage you are at the log file will be in different places.

    During OS Deployment

    Before your hard drive is formatted and partitioned
    X:\windows\temp\smstslog\ <——————————————(This is where I found it)

    After your hard drive is partitioned formatted
    X:\smstslog\ and then is in C:\_SMSTaskSequence\logs\smstslog\

    Within Windows

    Within Windows before the SCCM agent is installed:
    C:\_SMSTaskSequence\logs\smstslog\

    Within Windows after the SCCM agent installed:
    C:\windows\system32\ccm\logs\smstslog\

    When the Task Sequence completes on a x86
    C:\windows\system32\ccm\logs\

    For x64 Systems
    C:\windows\SysWOW64\ccm\logs\

    I personally browsed to the folder it was in and copied just the file to USB then opened it with CMTrace.

    Reply
  • Avatar photo Jacob says:
    October 4, 2017 at 7:21 pm

    So, how did you get the SMSTS log, if the image process failed? This is probably well-known in the community. But, I’m new to the SCCM community.

    Thanks!

    Reply
  • Avatar photo Brandon Lehman says:
    April 18, 2017 at 10:17 pm

    I wish I would have found this a day earlier! I would have saved lots of hours of troubleshooting…

    Reply
    • Avatar photo Prajwal Desai says:
      April 18, 2017 at 11:01 pm

      Glad to hear that you found it 🙂

      Reply
      • Avatar photo nandini says:
        June 25, 2020 at 6:41 pm

        Hi Prajwal , i want to give OSDCOMPUTERNAME as LAB-#Right(“%SerialNumber%”,12)#, i am not able to full fill this requirement getting same error code 0x80220005.
        please help me out

        Reply

Leave a Reply Cancel reply

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

Recast Sponsored AD
Ad image
Patch My PC Sponsored AD
Ad image

Latest Articles

Fix Windows Autopilot Reset Error 0x80070032
Fix Windows Autopilot Reset Error 0x80070032
Autopilot Intune
Windows activation error 0xc004c020
Fix: Windows Activation Error 0xC004C020 with 2 Easy Methods
Windows 11 Windows 10
Find the Package ID of SCCM Application
3 Best Ways to Find the Package ID of SCCM Application
SCCM
SCCM Updates Install Error 0x800b0109 0x8024b303
Fix: SCCM Updates Install Error 0x800b0109 | 0x8024b303
SCCM
Subscribe to Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

You Might Also Like

Find the Package ID of SCCM Application
SCCM

3 Best Ways to Find the Package ID of SCCM Application

By Prajwal Desai
SCCM Updates Install Error 0x800b0109 0x8024b303
SCCM

Fix: SCCM Updates Install Error 0x800b0109 | 0x8024b303

By Prajwal Desai
ConfigMgr Technical Preview 2302 New Features
SCCM

ConfigMgr Technical Preview 2302 New Features | Baseline Version

By Prajwal Desai

Removed from reading list

Undo
Welcome Back!

Sign in to your account

Lost your password?