I was trying to capture an image and get the following error:
C:\WINDOWS\system32>dism /capture-image /imagefile:C:\install.wim /capturedir:D:\ /name:"Private" /compress:maximum /checkintegrity /verify /bootable
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Error: 1805
The environment specified is invalid.
The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
I have looked up the error on various forums and found several answers but none have worked out. I double checked the drive letters, I made sure my version is up to date, and I should have enough space. I added a link of the log file as well. Any help would be greatly appreciated.
https://drive.google.com/file/d/1gSJ4KsveDTvchYdk8-KWp8m6ezRqkwzx/view?usp=sharing