Failed To Run Task Sequence Error 0x80004005 {Resolved}

Jason Barrett Jason Barrett | | Task Sequence

The task sequence error 0x80004005 is the most common error I see with failing task sequences.

The error usually appears when the task sequence is trying to install an application or a package to the operating system.

The error code 0x80004005 is a “Generic” error, In my experience the error will be cause by one of three things which I will cover below.

Review SMSTS.log

To identify what is the root cause of this error we will need to check the smsts.log as this will have detailed information on what caused the error 0x80004005 and failed the osd task sequence.

  1. Start the sccm task sequence on the machine that is getting the error
  2. Press F8 to bring up the command prompt
    command prompt in task sequence
  3. Run the task sequence until it fails, the task sequence will not exit because we have opened the command prompt
  4. Below you can see in the screenshot I managed to replicate the issue in my test lab.
    SCCM Task Sequence Error 0x80004005
  5. There is not much information on this screen that we can use to resolve the issue.
  6. In the command prompt type in notepad and hit enter
    open notepad in winpe
  7. In notepad hit file > open > select type of files (All Files)
  8. go to X:\Windows\Temp\SMSLog\
  9. Open SMSTS.log
    smsts log in winpe
  10. Take a look at the last few lines as this will highlight what is causing the error.
  11. Below I can see that the office 2016 application has caused the task sequence to fail.
    smstslog whowing error

Now we know what cause the error 0x80004005 we can apply a fix. Below I am now going to go through the following fixes.

How To Fix Failed To Run Task Sequence 0x80004005

In my experience the error 0x80004005 is always resolved by applying one of the below fixes

  • Application / Package 
  • Boundaries
  • Certificate Expired
  • Drivers

Application / Package

If you identify an application is causing the error we will need to check the applications install command. To do this follow these steps

  1. Open the configuration manager console
  2. Go to \Software Library\Overview\Application Management\Applications or \Software Library\Overview\Application Management\Packages
  3. Highlight the application with the issue
  4. Then make sure the application is distributed correctly, you should see numbers only next to success
    check application distributed status
  5. If the application needs to be re-distributed right click on the application and select re-distribute.
  6. Right click on the application and select Properties
  7. Click the deployment types tab
  8. Select the application and click edit
  9. Click programs tab
  10. Verify the installation program command is correct
    sccm task sequence application install command
  11. I recommend to manually run this command on a machine that does not have the application installed to verify it installs correctly


If there are no boundaries configured in the configuration manager console for the network where you are running the task sequence from then the machine will not be able to download any content because it has not been given access by SCCM.

To check the boundaries do the following

  1. Confirm the IP of a machine you are running the task sequence on, The can be done by pressing F8 to bring up the command prompt then type in ipconfig
  2. Now open the SCCM console
  3. Go to \Administration\Overview\Hierarchy Configuration\Boundaries
  4. Confirm that the ip falls in to one of the boundary’s listed
    sccm boundaries
  5. Next go to \Administration\Overview\Hierarchy Configuration\Boundary Groups
  6. Confirm the Boundary is in a Boundary group by right clicking on the boundary group and select properties
  7. Make sure the boundary is listed under Boundaries
    confirm boundary in boundary group
  8. Click on the references tab
  9. Confirm the box is selected next to “Use the boundary group for site assignment”
  10. Confirm the correct site is selected for “Assigned site”
  11. Confirm the expected sccm site server is listed, if it is not click add and add it from the list
    boundary group properties

If you had to make changes to the boundaries I usually wait about 30 minutes before I try to build another machine again.

Certificate Expired

If the self-signed certificate has expired this will also cause the above error.  To check if it has expired do the following.

  1. Open up the SCCM console
  2. Go to \Administration\Overview\Site Configuration\Servers and Site System Roles
  3. Left click on the SCCM server that is serving the PXE boot
  4. Right click on distribution point > Properties
    Self Signed Certificate
  5. Click on the communication tab
  6. Check the expiration date
    distribution point properties
  7. If the certificate has expired you will need to re-new it


If the error occurred was caused by a driver confirm the following

  • Are the drivers being applied to the correct machine model
  • Are the drivers distributed

You could try to re-download the drivers and add them back in to SCCM again. If you need help with this step take a look at this guide I wrote.

Are the drivers getting applied via a command line? I have seen an issue where there is a syntax error in the command line, for example

  • (Setup.exe /auto upgrade / noreboot /dynamicupgrade /compat scanonly) Should of been
  • (Setup.exe /auto upgrade / noreboot /dynamicupgrade /compat /scanonly)

it was missing a / before scanonly. To test the command line you can log on to the machine and manually run the command line and see if it installs as expected.

Leave a Comment