Import Hyper-V VM massively with PowerShell

Hello,

You can import Hyper-V Virtual Machine massively with a simple oneliner :

Get-ChildItem -Recurse -Include *.xml -Path C:VM | Import-VM -Register

This can be very useful when you change laptop, or when you get a bunch of VM from a friend.

 

Leave a Reply