Hello,
The error message "Error: 5 Access denied" typically indicates that the DISM tool doesn't have sufficient permissions to access the files or directories you're trying to use. Here are several steps you can take to troubleshoot and potentially resolve the issue:
Run WinPE with Administrator Privileges: Ensure that you are running the Windows Preinstallation Environment (WinPE) with administrative privileges. If you're not already, try restarting WinPE as an administrator.
Check File System Permissions: Verify the permissions on the directory where you are attempting to capture the image (). You might need to adjust the permissions to allow the system or your user account full control over the directory.
Disable Antivirus: Temporarily disable your antivirus software. Sometimes security software can interfere with system commands.
Good Internet Connection: Ensure that you have a stable internet connection. Some DISM operations require downloading files from Microsoft servers.
Try running the DISM command in Safe Mode with Networking:
- Press Windows key and type: msconfig and press Enter;
- Click on the System Boot tab and check the options: Secure boot and network;
- Restart the pc.
Hope this helps.
Best Regards,
Hania Lian
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.