After capturing a Windows 10 image with
dism /capture-image /imagefile:i:\myimage.wim /capturedir:d:\ /name:myimage
when I try to apply the image to the previously captured dir d:\
with
dism /apply-image /imagefile:i:\myimage.wim /applydir:d:\ /Index:1
I get an Error 5: Access denied
My workarounds are one of the following:
rmdir /s /q d:\
- with
diskpart
:select volume d
andformat quick fs=ntfs label=Windows
Is there a simpler way?