Sha256: 21fd85b70bc77a844e11005b1f2d1f4cbeab8d84584fb84c080f48c9d04dca75
Contents?: true
Size: 379 Bytes
Versions: 7
Compression:
Stored size: 379 Bytes
Contents
Param( [Parameter(Mandatory=$true)] [string]$VmId, [Parameter(Mandatory=$true)] [string]$Path ) $vm = Hyper-V\Get-VM -Id $VmId -ErrorAction "Stop" $vm | Hyper-V\Export-VM -Path $Path # Prepare directory structure for box import $name = $vm.Name Move-Item $Path/$name/* $Path Remove-Item -Path $Path/Snapshots -Force -Recurse Remove-Item -Path $Path/$name -Force
Version data entries
7 entries across 7 versions & 2 rubygems