w10install/image/umount-all.cmd

19 lines
408 B
Batchfile
Raw Normal View History

@echo off
2023-02-20 07:56:50 +01:00
set IMAGE=%SystemDrive%\TEMP\IMAGE
set BOOT=%SystemDrive%\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
2023-01-22 20:09:39 +01:00
dism /Cleanup-Mountpoints
2023-01-22 20:11:29 +01:00
echo showing status ...
dism /Get-MountedWimInfo
2023-12-25 22:05:37 +01:00