Use PowerShell to dismount a disk image

How can I use Windows PowerShell to dismount a virtual disk?

Use the Dismount-DiskImage cmdlet. It will dismount either an ISO or a virtual hard disk. Specify the path then using -imagepath. Here is an example:

Dismount-DiskImage -imagepath “C:\fso\myisodisk.iso”