windows - Force Unmounting a VHD in Windows10 ( without a restart ) -
there requirement monitor pool of 20 servers. each servers create vhds periodically perform xyz tasks , unmounts them safely. vhd mounting , unmounting scripts legacy ones , written in batch diskpart.exe , not powershell
more ever stale vhds start pile in these servers on period of time (a week or several reasons). there way force unmount vhd discarding changes periodically part of cleanup routine?
- diskpart not effective
- ejecting drive or unmounting disk manager not clean approach , throws errors if vhd not unmounted
- restarting server cleanest way not preferred
is there way force unmount vhd drives via powershell or inbuilt win10 tools when .vhdx file not available. preferred approach use powershell script on diskpart avoid these kind of issues?
Comments
Post a Comment