When I ran DISM to create an Install.wim file, I got error 6 "invalid handle" at 10% of the wim file creation. The command I used is:
Dism /Capture-Image /ImageFile:"C:\Captured.wim" /CaptureDir:G:\ /Name:Capture
I am using DISM on Windows Server 2019 Datacenter and running this in Command Prompt as an administrator. The source directory (G:) and destination path (C:\Captured.wim) are correct and accessible.
I ran disk health checks using chkdsk to check and fix the source and destination drives:
chkdsk G: /f
chkdsk C: /f
I have ensured there is enough free space on the destination drive (C:) to store the captured image. I checked the DISM version using:
dism /Online /Get-CurrentEdition
I also ran a System File Check:
sfc /scannow
Additionally, I used DISM to repair the Windows image by running the following commands:
dism /Online /Cleanup-Image /CheckHealth
dism /Online /Cleanup-Image /ScanHealth
dism /Online /Cleanup-Image /RestoreHealth
I made sure Windows Update is up to date but still no luck, can someone assist