Thursday, 27 October 2016

Citrix Studio - Change Hypervisor Connection

In Citrix Studio, it is possible to create a new hypervisor connection, and move the VMs to that new connection. The reason new connection be created and we move VMs to that connection can be varies – from commissioning new vCentre server to changing to a new hypervisor platform (from Microsoft Hyper-V to VMware vSphere).

This post will explain on how to change the connection from current to a new one. The connection needs to be already established prior to implementation of this steps.

  1.  RDP to Citrix Studio server, and launch PowerShell. Add Citrix snap-in by following below command.

    Command : asnp citrix*

  2. Identify current and to be used Broker Connection IDs by using below command. In this example, I want to change from Hypervisor Connection UID 1 to Hypervisor Connection UID  3Command : get-BrokerHypervisorConnection

  3.  Change the Hypervisor Connection UID to 3 by following below command

    Command : Set-BrokerMachine -MachineName "<Domain>\<VMName>" -HypervisorConnectionUid "<ConnectionID>"

  4. Result

  5. Now let's have some fun. Let's change the Hypervisor Connection UID back to 1

    Set-BrokerMachine -MachineName "<Domain>\<MachineName>" -HypervisorConnectionUid "1"

  6.  Result

  7. If we have more than 1 VDI machines to be moved, we can use below PowerShell script to ease the job.
asnp Citrix*
forEach ($Machine in get-Content C:\Temp\PSScript\machines.txt)

set-BrokerMachine -MachineName "$Machine" -HypervisorConnectionUid "3"

Location: Auckland, New Zealand


  1. Nice post, Call us at Hotmail Assistance Phone Number NZ +64-98890480 if you have any issue with your Hormail account in New Zealand.

  2. Hướng dẫn cách trị trào ngược dạ dày thực quản bằng những loại thuốc trong tự nhiên mà hiệu quả nhất. NGoài ra bạn nên tham khảo thuốc chữa trào ngược dạ dày thực quản đặc trị của Tỳ Bách Thảo, đây là một trong những loại thuốc đông y chữa trào ngược thực quản hiệu quả nhất. Bệnh trào ngược dạ dày đang là một trong những mối đe dọa ảnh hưởng đến sức khỏe của con người toàn cầu.

  3. Very helpful suggestions that help in the optimizing website. Thank you for valuable suggestions.Powershell Studio 2017

  4. if you have any issue with your Hormail account in New Zealand.

    แตกใน xxx