Sha256: 87ad2682bcda8eb837382f18119b38735fe371874949a6157e48d1b762bdcf06
Contents?: true
Size: 363 Bytes
Versions: 11
Compression:
Stored size: 363 Bytes
Contents
Param( [Parameter(Mandatory=$true)] [string]$VmId, [Parameter(Mandatory=$true)] [string]$Path ) $vm = Get-VM -Id $VmId -ErrorAction "Stop" $vm | 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
11 entries across 11 versions & 2 rubygems