w10install/wim/umount-all.cmd
2022-12-25 20:52:46 +01:00

15 lines
306 B
Batchfile

@echo off
set IMAGE=c:\TEMP\IMAGE
set BOOT=c:\TEMP\BOOT
echo unmounting image and discarding changes ...
dism /Unmount-Wim /MountDir:%IMAGE% /Discard
echo.
echo unmounting boot and discarding changes ...
dism /Unmount-Wim /MountDir:%BOOT% /Discard
echo cleaning up ...
dism /Cleanup-Wim