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?

  1. diskpart not effective
  2. ejecting drive or unmounting disk manager not clean approach , throws errors if vhd not unmounted
  3. 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

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -