Sha256: 9947125f2f40b3379821aad9b2e2c1725bb89ddb1d383eca809cfffcd6f6fc68

Contents?: true

Size: 294 Bytes

Versions: 7

Compression:

Stored size: 294 Bytes

Contents

Param(
    [Parameter(Mandatory=$true)]
    [string]$VmId
)

$VM = Hyper-V\Get-VM -Id $VmId -ErrorAction "Stop"
$Snapshots = @(Hyper-V\Get-VMSnapshot $VM | Select-Object Name)
$result = ConvertTo-json $Snapshots

Write-Host "===Begin-Output==="
Write-Host $result
Write-Host "===End-Output==="

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
vagrant-unbundled-2.1.1.0 plugins/providers/hyperv/scripts/list_snapshots.ps1
vagrant-unbundled-2.0.4.0 plugins/providers/hyperv/scripts/list_snapshots.ps1
vagrant-unbundled-2.0.3.0 plugins/providers/hyperv/scripts/list_snapshots.ps1
vagrant-aws-detiber-0.7.2.pre.4 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/providers/hyperv/scripts/list_snapshots.ps1
vagrant-aws-detiber-0.7.2.pre.3 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/providers/hyperv/scripts/list_snapshots.ps1
vagrant-aws-detiber-0.7.2.pre.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/providers/hyperv/scripts/list_snapshots.ps1
vagrant-unbundled-2.0.2.0 plugins/providers/hyperv/scripts/list_snapshots.ps1