Adam Gross, a Microsoft MVP, posted this method. You can use this method to find the location of all mounted images, extract the discard status, and then dismount each of them. It is a PowerShell ...