Sha256: f012fae30bea08aff7b63017ce992d18ab3a13a44113a1a9e8e2a5ae5790497e
Contents?: true
Size: 318 Bytes
Versions: 29
Compression:
Stored size: 318 Bytes
Contents
#Requires -Modules VagrantMessages param( [Parameter(Mandatory=$true)] [string]$VmId, [string]$SnapName ) $ErrorActionPreference = "Stop" try { $VM = Hyper-V\Get-VM -Id $VmId Hyper-V\Remove-VMSnapshot $VM -Name $SnapName } catch { Write-ErrorMessage "Failed to delete snapshot: ${PSItem}" }
Version data entries
29 entries across 25 versions & 4 rubygems