Skip navigation

Q. Can I import a Hyper-V virtual machine (VM) using PowerShell?

A. Once you've installed and imported the CodePlex Hyper-V module referenced in FAQ "Q. Is there a PowerShell set of cmdlets for Hyper-V outside of using SCVMM? (LINK)," an exported VM can easily be imported using the Import-VM cmdlet. In the command below, I reuse the existing IDs in the file and wait for the import to complete before returning to the PowerShell prompt.

Import-VM -path E:\virtuals\PXETest -ReuseIDs -Wait

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish