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

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.