Open Karl-WE opened 9 months ago
In some cases deploy.ps1 or other scripts may fail because of an incorrectly mounted / dismounted or stale image.
This could be achieved before mounting a new image with Mount-WindowsImage, to check the condition
get-windowsimage -mounted is not $null
get-windowsimage -mounted
then execute
dism /cleanup-mountpoints
In some cases deploy.ps1 or other scripts may fail because of an incorrectly mounted / dismounted or stale image.
This could be achieved before mounting a new image with Mount-WindowsImage, to check the condition
get-windowsimage -mounted
is not $nullthen execute
dism /cleanup-mountpoints