Task sequence has failed with the error code 0x800700A1

One of our customer decided to go with brand new range of dell latitude laptops. The customer is running SCCM integrated with MDT. The moment they started imaging the laptops using SCCM, they got an error. Task sequence has failed with the error code 0x800700A1. For more information, contact your system administrator or help desk operator.

This error occurred while imaging new laptops only. On other old laptops, the operating system deployment worked well. Error 0x800700A1 translates to disk being RAW format.

Probably the hard disk format on new laptops is not something that SCCM likes. If the partition is in RAW format, it is always recommended to format it before the OSD. In other words before a package that gets cached to the hard disk, the disk needs to be formatted properly. Below is the screenshot of the error.

Task sequence has failed with the error code 0x800700A1

Task sequence has failed with the error code 0x800700A1
To fix the error task sequence has failed with the error code 0x800700A1, you could try the below steps. Basically we use diskpart commands to format the disk. In addition here is the link for diskpart commands and diskpart command line options. First of all in the WinPE environment, press F8 which brings up the command prompt. Type the below commands in order.

diskpart
list disk    (lists the disks)
select disk 0    (0 being the disk to setup)
clean    (wipes the disk)
create partition primary (creates windows partition)
select partition 1
format quick fs=NTFS (Format primary partition)
assign letter C
exit

After performing the above steps, restart the machine and try the OSD again. This time you shouldn’t see the task sequence failing with error 0x800700A1.

Related Posts
guest
26 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Willaim

I’m new in this and I haven’t try it yet but I’d like to know if I do it this will erase all the information and programs in my disk? Thanks for your advice

Ben DUNCAN

Thank you Prajwal, this has resolved an issue I have been having most of today. Your advice worked perfectly. Much respect.
Regards,

Joschy

I just changed, the running order in my tasksequence. I moved my script after the “Format and Partition” step, That fixed it as well

P Sinha

Hi Prajwal, similar error recently I faced during PXE deployment image on VMs with 1909 image ( on the vary first step Front UI). win10 1809 is working perfectly. while I check other existing VMs and try to deploy the both image 1809 & 1909 are working. So I can’t decide where could be the issue because neither the existing test VM require to DISKPART though working with both images. and the newly created VM i have done DISKPART too but same issues and can’t even think it’s VM issue because 1809 is working. Please share some input on this… Read more »

Tim

Hi, I have known about this fix for a while (found on your site I expect). Do you know of a way we can automate this process for when we are doing Laptop rebuilds?

Jesse

You can use a prestart command in the boot image that points to a diskpart script. You would place the commands above into a text file that lives on a network share somewhere. Then, open the properties of the boot image in SCCM, select the customization tab. For the command line section, enter “diskpart /S yourscriptname.txt”, check the box to include files, and select the network share with the location of the script. Keep in mind this kicks off before you select the task sequence in the imaging process, so you must be absolutely sure that you are ready to… Read more »

Per-Åke Andersson

Another solution for this error can be to change SATA operation from RAID to AHCI. It did in my case!

ethan

nice post

Rune Garmann

Thank You! This made my day!

Developer MacBooks

This worked… Thank you!!

Kumar M

It’s working for me. Thanks a lot for your post.
keep it up. Good work

Falcon

Trying to create partition primary, I receive an error that reads “DiskPart has encountered an error: The request could not be performed because of an I/O device error. See the system event log for more information.”
Any Ideas?

Pravin

After I write the first four lines from the above, I get an error that says “Virtual Disk Service Error: There is not enough usable space for this operation.”
This doesn’t make sense to me because the command “clean” would wipe the disk that I selected to clean. I ran the commands multiple times and am still getting this error. Any suggestions?

Pravin

I’m actually not 100% if it is. It was imaged at one point. However, as I was working on it slowed down a lot. So I decided to re-image the machine and that is when I came across this message.

Eleazar Rosario

Thanks for the post, based on your suggestion I discovered my hard drive was not being detected, I switched SATA ports, It formatted and imaged as expected.

Justin

“create primary partition” should be “create partition primary”

Jens

Hi,

I also get the error. I wrote a PS script to chose the disk in OSD when there are multiple disks. So I can prevent to format wrong disk. Unfortunately I have to run the script before the disk gets formated. Any other idea to run the script except copying it to Boot WIM?

Thank you for your help.

Erik Nettekoven

This “before a package that gets cached to the hard disk, the disk needs to be formatted properly.” fixed it for me. I accidentally had put a package before the formatting of the disk in my TS order.

As soon as I placed the package after the formatting disk step, the error went away.

James

Hello Erik, that piece of information really helped me out! Many thanks for that golden nugget of information.

Anders M. Nordli

Yeah! Thanks for this! This was the problem I had too. I had accidentally put an extra package in front of the format step. Removed it and problem solved! 🙂

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More