This article describes how to migrate the machines from existing host connection to a new host connection in XenDesktop.
Complete the following steps to migrate the machines from existing host connection to a new host connection in XenDesktop:
Find HypervisorConnectionUid using the following commands:
For one machine - Get-BrokerMachine -MachineName 'MyDomain\machine_name'
For a set of machines - $machines = Get-BrokerMachine -MachineName 'MyDomain\*'
$machines.count
In XenDesktop Studio, create a new host connection.
On new host connection, create a test01 machine and using the preceding commands, find out HypervisorConnectionUid,.
Run the following command to change HypervisorConnectionUid for an existing machine to the new host connection:
Set-BrokerMachine -MachineName 'MyDomain\MyMachine' -HypervisorConnectionUid 9
Validate in XenDesktop studio, and boot the device to validate the machines on new host connection.
Perform Steps 1 to 4 for all existing machines to move to new host connections by using the following command:
Get-BrokerMachine -MachineName 'MyDomain\*' | Set-BrokerMachine -HypervisorConnectionUid 9
Validate in XenDesktop studio, and boot the device to validate the machines on new host connection.
Note: If you find any Action Pending State, run the following command:
Get-BrokerHostingPowerAction -Filter { State -eq "Pending" } | Remove-BrokerHostingPowerAction