Fix PowerShell cmdlet name for clones

This commit is contained in:
Chris Roberts 2018-06-18 09:09:01 -07:00
parent 1e5c8bf275
commit a8abb6898c
1 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
# Always stop when errors are encountered unless instructed not to
$ErrorActionPreference = "Stop"
# Vagrant VM creation functions
function New-VagrantVM {
@ -123,7 +126,7 @@ function New-VagrantVMVMCX {
$Path = $Drive.Path
Hyper-V\Remove-VMHardDiskDrive $Drive
Hyper-V\New-VHD -Path $DestinationPath -ParentPath $SourcePath
Hyper-V\AddVMHardDiskDrive -VM $VM -Path $DestinationPath
Hyper-V\Add-VMHardDiskDrive -VM $VM -Path $DestinationPath
break
}
}