2020-06-30 14:22:41 -07:00

14 lines
280 B
PowerShell

#Requires -Modules VagrantMessages
param(
[Parameter(Mandatory=$true)]
[string]$DiskFilePath
)
try {
Hyper-V\Dismount-VHD -path $DiskFilePath
} catch {
Write-ErrorMessage "Failed to dismount disk info from disk file path ${DiskFilePath}: ${PSItem}"
exit 1
}