Error 0x80070005 (Access Denied) often blocks the Windows 11 Media Creation Tool from writing files or accessing system folders. This guide walks you through the most effective fixes, from running the tool as administrator to clearing conflicting files, so you can create installation media or upgrade without the error.
What You’ll Need
- A Windows 11 PC with administrative privileges
- A USB drive (at least 8 GB) if you’re creating installation media
- Stable internet connection for downloading Windows 11 files
- If you’re upgrading, ensure you have at least 64 GB of free space on your system drive
Step-by-Step
- Run the Media Creation Tool as Administrator – Right-click the downloaded MediaCreationTool.exe file and select “Run as administrator.” If prompted by User Account Control, click “Yes.” This grants the tool the elevated permissions it needs to access protected folders.
- Disable Antivirus or Security Software Temporarily – Third-party antivirus programs or Windows Defender’s real-time protection can block the tool from writing files. Temporarily disable them (for Windows Defender, go to Settings > Privacy & Security > Windows Security > Virus & threat protection > Manage settings, and turn off Real-time protection). Re-enable after the process completes.
- Check and Repair System File Permissions – Open Command Prompt as administrator (search “cmd,” right-click, “Run as administrator”). Run the following commands one by one, pressing Enter after each:
icacls C:\Windows\Temp /grant Everyone:(OI)(CI)F
icacls C:\Windows\SoftwareDistribution /grant Everyone:(OI)(CI)F
This grants full control to these folders, which the tool often needs to write to. Note: This is a temporary fix; you can revert later if needed. - Clear Temporary Files – In the same Command Prompt, run
del /f /s /q %temp%\*anddel /f /s /q C:\Windows\Temp\*. This removes any corrupted or locked temporary files that might cause access errors. - Rename the SoftwareDistribution Folder – This folder stores Windows Update files. Corrupted contents can trigger error 0x80070005. In Command Prompt, run:
net stop wuauserv
net stop bits
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
net start wuauserv
net start bits
This renames the folder, forcing Windows to recreate it fresh. - Disable Read-Only Attributes on the USB Drive – If using a USB drive, right-click it in File Explorer, select “Properties,” and uncheck “Read-only” under the General tab. Also ensure the drive is formatted as NTFS (right-click > Format > File system: NTFS).
- Try a Different USB Port or Drive – Sometimes the error is due to a faulty USB port or a drive with bad sectors. Plug the USB into a different port (preferably USB 2.0) or try another drive.
- Run the Tool in Clean Boot – Press
Win + R, typemsconfig, go to Services tab, check “Hide all Microsoft services,” click “Disable all,” then go to Startup tab and click “Open Task Manager.” Disable all startup items, restart, and run the tool again. This eliminates software conflicts. - Use Windows Update Assistant Instead – If the Media Creation Tool still fails, download the Windows 11 Installation Assistant from Microsoft’s official website. It performs the same upgrade but often bypasses permission issues.
Common Mistakes
- Running the tool without admin rights – Double-clicking the file does not always elevate privileges. Always right-click and select “Run as administrator.”
- Leaving antivirus active – Even if you disable it, some antivirus software has background services that restart it. Ensure it’s fully disabled or uninstalled temporarily.
- Using a FAT32 USB drive – The tool requires NTFS for large files. If your drive is FAT32, you’ll get errors. Reformat to NTFS.
- Skipping the SoftwareDistribution rename – Many users skip this step, but corrupted update files are a common cause of access denied errors.
- Not clearing temp files – Old temp files can lock the tool’s operation. Always clear them before retrying.
Tips
- Run the tool on a clean, freshly restarted PC to avoid background processes interfering.
- If you’re upgrading, close all open applications and disconnect unnecessary peripherals.
- Ensure your system drive has enough free space – at least 20 GB for the upgrade process, but more is better.
- Use a wired internet connection to avoid interruptions during the download.
- If using a USB drive, make sure it’s empty – the tool will format it.
- Keep your Windows 10 or 11 up to date before running the tool, as some updates fix known issues.
Troubleshooting
If the error persists after following all steps, try these additional measures:
- Check Disk Errors – Run
chkdsk /f C:in Command Prompt (admin) and restart. This fixes file system errors that can cause access issues. - Perform a System File Check – Run
sfc /scannowand thenDISM /Online /Cleanup-Image /RestoreHealth. These commands repair corrupted system files. - Reset Windows Update Components – Use the Microsoft’s “Windows Update Troubleshooter” from Settings > System > Troubleshoot > Other troubleshooters. It can reset update components automatically.
- Create Media on Another PC – If nothing works, download the tool on a different computer and create the USB installation media there. Then use that USB to upgrade your current PC.
- Boot into Safe Mode – Restart your PC, hold Shift and click Restart, then go to Troubleshoot > Advanced Options > Startup Settings > Restart, and press 4 for Safe Mode. Run the tool in Safe Mode – it uses minimal drivers and services, which can bypass the error.
Frequently Asked Questions
What exactly causes error 0x80070005?
It’s an “Access Denied” error. It occurs when the Media Creation Tool lacks permission to read or write to certain system folders, or when another program (like antivirus) is blocking it.
Will this error damage my computer?
No, it’s a software permission issue. It won’t harm your hardware or files, but it prevents the tool from completing its task.
Can I use the Media Creation Tool to upgrade from Windows 10 to 11?
Yes, the tool can either create installation media or directly upgrade your current PC. The same error can occur in both scenarios, and the fixes above apply to both.
Do I need to disable Windows Defender permanently?
No, only temporarily. Re-enable it after the tool completes. Leaving it off exposes your PC to security risks.
Why does the tool work on another PC but not mine?
This usually indicates a system-specific permission issue or a conflicting program on your PC. The clean boot and safe mode steps are designed to isolate that conflict.
Is there a command-line alternative to the Media Creation Tool?
Yes, you can use the Windows 11 ISO file directly. Download the ISO from Microsoft’s website, mount it, and run setup.exe. This often bypasses the tool’s permission checks.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Text Cursor Turning White in Windows 11
- Force Quit Non-Responding Apps on Mac: 6 Ways
- Chromebook Not Charging? Fix It Fast
- iPhone Won’t Make Calls but Texts Work? Fixes
- Android to iPhone Hotspot: Connect & Fix Issues
- How to Auto-Enable Low Power Mode on iPhone