Unable to install windows error 0x80070057


I have an HP envy 15 which earlier had Windows 8.1 installed (and now absolutely nothing).

Microsoft is giving a free upgrade to Windows 10.

I tried to clean install windows 10 on my laptop, to totally clean my hard disk I made a bootable drive, and booted with it to install Windows

I clicked custom install and after that I pressed shift+F10 to open a command shell and I ran the following commands

select disk 0

After this it encountered an error and showed that it was unable to format the drive.

I rebooted again with a bootable USB, but I found that my whole hard disk was formatted (it showed unallocated space 900gb without any partition)

I made a new partition of about 100gb and tried to install windows in it but when I formatted it an error was showed up that windows cannot format the partition:

error code 0x80070057

Can anyone help me to solve this?

(I was able to install Ubuntu in my laptop but I deleted it because I found it useless for me)

asked on Super User Feb 16, 2016 by Shubham Gupta • edited Aug 8, 2016 by Hennes

1 Answer


First of all using diskpart to wipe your harddisk clean wasn't a good idea. It destroys any boot and recovery partitions which would be useful in case of problems like this. Not to mention you need to install Windows 10 via Media Creation Tool to benefit from free upgrade (not clean install). You need to downgrade to Windows 8.1 (no need to worry about activation as it should read your key from UEFI) then use Media Creation Tool to upgrade to Windows 10. You can download Windows 8.1 directly from Microsoft. Also please refer to Microsoft FAQ page for other questions you might have about this process.

answered on Super User Feb 16, 2016 by conquistador

User contributions licensed under CC BY-SA 3.0