mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 05:04:39 +02:00
Add some VM scripts
This commit is contained in:
4
scripts/import-vm.ps1
Normal file
4
scripts/import-vm.ps1
Normal file
@ -0,0 +1,4 @@
|
||||
$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
|
Reference in New Issue
Block a user