Error 0x80070002 in the Windows Media Creation Tool is the operating system’s polite way of saying a file it expected is not there. You are usually trying to build a bootable Windows 11 USB — perhaps to repair an unbootable machine or to reinstall from scratch — and the tool aborts mid-download or mid-write with that cryptic code and nothing else. On HP laptops this failure has a few extra suspects. HP’s preinstalled security stack, including HP Wolf Security and various HP management agents, can block the tool’s temporary file operations. HP disk encryption states and crowded recovery partitions can also trip the tool’s free-space and path checks. The core of the error is the same as on any PC, but the HP-specific blockers are worth clearing early. This guide walks through the exact repair sequence: clearing the tool’s cache, fixing permissions, handling HP’s security software, and verifying disk space, with a reliable ISO-and-Rufus fallback at the end. Start by downloading the tool fresh from the official Windows 11 download page , since a damaged tool executable itself is a surprisingly common cause. For the general Safe Mode steps referenced below, see how to boot Windows 11 in Safe Mode , and if updates themselves are broken on the machine, the stuck-on-restarting fix may be the deeper repair you need.
Why this happens
- Corrupted temporary download files. An interrupted earlier run leaves partial files the tool trips over; 0x80070002 is literally ‘file not found’ when it tries to read them.
- The tool lacks administrator rights. Without elevation, Windows blocks the tool’s writes to protected cache locations.
- HP security software blocks file operations. HP Wolf Security and preinstalled agents can quarantine or block the tool’s temp files.
- Third-party antivirus interferes. Real-time protection sometimes flags the tool’s large temporary files mid-write.
- Insufficient free space. The tool needs gigabytes of temp space on C: plus an 8 GB or larger target USB.
- A damaged tool download. The MediaCreationTool.exe itself can download incompletely or become corrupted.
- Corrupted system update components. The tool shares download machinery with Windows Update; broken components break both.
How to fix it
Work through these in order — diagnose first, then act.
Fix 1: Download a fresh copy and run as administrator
Start with the simplest causes: a damaged executable and missing elevation. This takes two minutes and fixes a real share of failures.
- Delete the old MediaCreationTool.exe and download a fresh copy from the official Windows 11 download page .
- Right-click the new executable and choose Run as administrator — do not just double-click it.
- Accept the license terms and proceed; check whether the error still occurs.
- If it fails at the same point, continue — the cause is deeper.
Fix 2: Clear the tool’s temporary files
Stale partial downloads from earlier runs are the single most common trigger for 0x80070002. Wiping the temp cache gives the tool a clean start.
- Press Win+R, type
%temp%, and press Enter to open your temporary files folder. - Delete everything inside the Temp folder — skip files Windows says are in use.
- Also open the
C:\$Windows.~WSandC:\$Windows.~BTfolders if they exist and delete their contents. - Restart the laptop, then run the Media Creation Tool as administrator again.
Fix 3: Temporarily disable HP security and antivirus
HP’s preinstalled security stack is a known blocker for the tool’s file writes. Disable it briefly, build the media, then re-enable.
- Open HP Wolf Security and temporarily disable its real-time protection features.
- Disable any third-party antivirus real-time protection as well, leaving Windows Defender active.
- Run the Media Creation Tool as administrator and attempt the download again.
- Re-enable all security software immediately after the media is created, successful or not.
Fix 4: Free up space on the system drive
The tool stages gigabytes of files on C: before writing the USB. A cramped drive produces exactly this error code.
- Open Settings > System > Storage and confirm at least 20 GB free on the system drive.
- Run Disk Cleanup with system files selected; remove temporary files, delivery optimization files, and old Windows Update cleanup data.
- Check HP’s support site for your model if you suspect the recovery partition is crowding the disk.
- Empty the Recycle Bin and re-check the free space before retrying.
Fix 5: Reset the Windows Update components
The Media Creation Tool shares its download engine with Windows Update. Corrupted update components break the tool the same way they break updates.
- Open an elevated Command Prompt and stop the services:
net stop wuauserv,net stop cryptSvc,net stop bits,net stop msiserver. - Rename the cache folders:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.oldandren C:\Windows\System32\catroot2 catroot2.old. - Restart the services with the matching
net startcommands and reboot. - Run the Media Creation Tool as administrator again.
Fix 6: Try a different USB drive and port
Failing flash drives produce read errors the tool reports as 0x80070002. Rule out the hardware before deeper surgery.
- Use a USB drive of at least 8 GB from a reputable brand; avoid no-name drives.
- Plug it directly into a rear or side port on the laptop — avoid hubs and front-panel ports on docks.
- Format the drive as FAT32 in Disk Management before starting the tool.
- If the error persists with a known-good drive, the problem is software, not the USB.
Fix 7: Use the direct ISO download as a fallback
When the tool itself refuses to cooperate, bypass it entirely. The official ISO plus a USB writer achieves the same bootable media.
- On the Windows 11 download page, choose the direct ISO download option instead of the tool.
- Download Rufus from its official site and use it to write the ISO to your USB drive.
- Boot the target machine from the USB to verify the media works before relying on it.
- This fallback is fully legitimate and is the standard technician workaround for a stubborn tool.
Closing
Error 0x80070002 in the Media Creation Tool is almost always a file-access problem: stale temp files, missing admin rights, blocked writes, or a cramped drive. On HP laptops, add the preinstalled security stack to the suspect list. Work through the fixes in order, and keep the direct-ISO fallback in your back pocket — the goal is bootable media, and there is more than one road to it.
