Hyper-v VM migration with VMM Powershell

Posted by

Somethimes you need to bulk migrate some Hyper-v virtual machines.
This is not possible with the VMM gui.

In this situation PowerShell can help:
Filter on VMname

Replace the $VM line when you need to migrate all the machines placed on a specified host:

 

 

 

 

2 comments

  1. With the Move-SCVirtualMachine you have the -JobGroupID. Do you know how we can use this to monitor the status of the job and tell when it is complete?

    thanks,
    tim

Leave a Reply

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