mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-01 12:24:33 +01:00
4 lines
263 B
PowerShell
4 lines
263 B
PowerShell
|
$VMName = "debian"
|
||
|
Get-ChildItem "C:\packer\$VMName\Virtual Machines\*.vmcx" | Import-VM -Copy -VhdDestinationPath "C:\VirtualMachines\$VMName\Virtual Hard Disks" -VirtualMachinePath "C:\VirtualMachines\$VMName" -GenerateNewId
|
||
|
Start-VM $VMName
|
||
|
exit 0 # success
|