Based on the information provided, it seems you are encountering an "Access denied" error (Error 5) when trying to capture a Windows image using DISM in WinPE. This is a common issue that can occur for a few reasons:
- Insufficient permissions: Make sure you are running the command prompt as an administrator.
- Drive letter mismatch: In WinPE, drive letters may be assigned differently than in the regular Windows environment. Use the
diskpart
utility to verify the correct drive letters:
diskpart
list volume
This will show you the correct drive letters to use in your DISM command.
- Read-only attributes: The target drive or files may have read-only attributes set. Try removing these attributes:
attrib -r D:\*.* /s /d
- Antivirus interference: If you have antivirus software running, it may be blocking DISM operations. Try temporarily disabling it.
- File system corruption: Run a chkdsk on the drive to ensure there are no file system issues:
chkdsk D: /f
- Incorrect WinPE version: Ensure you're using a compatible version of WinPE for the Windows version you're trying to capture.
To resolve this issue, try the following steps:
- Verify the correct drive letters using diskpart.
- Run the command prompt as administrator.
- Remove read-only attributes from the target drive.
- Ensure there are no file system issues by running chkdsk.
- Double-check that you're using a compatible WinPE version.
If the issue persists, you may need to try capturing the image from a different environment or use alternative imaging tools like Microsoft Deployment Toolkit (MDT) or System Center Configuration Manager (SCCM).
Share
RewriteBased on the information provided, it seems you are encountering an "Access denied" error (Error 5) when trying to capture a Windows image using DISM in WinPE. This is a common issue that can occur for a few reasons:
- Insufficient permissions: Make sure you are running the command prompt as an administrator.
- Drive letter mismatch: In WinPE, drive letters may be assigned differently than in the regular Windows environment. Use the
diskpart
utility to verify the correct drive letters:
diskpart
list volume
This will show you the correct drive letters to use in your DISM command.
- Read-only attributes: The target drive or files may have read-only attributes set. Try removing these attributes:
attrib -r D:\*.* /s /d
- Antivirus interference: If you have antivirus software running, it may be blocking DISM operations. Try temporarily disabling it.
- File system corruption: Run a chkdsk on the drive to ensure there are no file system issues:
chkdsk D: /f
- Incorrect WinPE version: Ensure you're using a compatible version of WinPE for the Windows version you're trying to capture.
To resolve this issue, try the following steps:
- Verify the correct drive letters using diskpart.
- Run the command prompt as administrator.
- Remove read-only attributes from the target drive.
- Ensure there are no file system issues by running chkdsk.
- Double-check that you're using a compatible WinPE version.
If the issue persists, you may need to try capturing the image from a different environment or use alternative imaging tools like Microsoft Deployment Toolkit (MDT) or System Center Configuration Manager (SCCM).
https://www.tenforums.com/general-support/173316-winpe-apply-image-access-denied-error-5-a.html