Thursday, December 18, 2014

Change Network Interface in Existing Host Connection with XenDesktop

 

Open PowerShell as asministrator.

asnp Citrix* to load Citrix Module.

dir XDHyp:\HostingUnits to get Host connection details.

The following is an example of the output for the preceding commands:

PSPath : Citrix.Host.Admin.V1\Citrix.Hypervisor::XDHyp:\Hosting
Units\SERVERXD01
PSParentPath : Citrix.Host.Admin.V1\Citrix.Hypervisor::XDHyp:\Hosting
Units

PSChildName: SERVERXD01

PSDrive : XDHyp
PSProvider : Citrix.Host.Admin.V1\Citrix.Hypervisor
PSIsContainer : True
HostingUnitUid : 9b0ee1f0-2b45-45d5-9664-8cad350130f8
HostingUnitName : SERVERXD01
HypervisorConnection : XSG7Pool
RootPath : XDHyp:\Connections\XSG7Pool\
RootId :

NetworkPath: XDHyp:\Connections\XSG7Pool\network1.network

NetworkId : d8f21da0-6697-4fce-925b-99c19d4bae70
Storage : {XDHyp:\Connections\XSG7Pool\iSCSI 500GB.storage}
VMTaggingEnabled : True
UseLocalStorageCaching : False
Metadata : {}


Copy PSChildName and NetworkPath from the output:



Set-Item -Path xdhyp:\hostingunits\PSChildName



NetworkPath xdhyp:\connections\XSG7Pool\NetworkName



For example, new network interface is Network2 for the host SERVERXD01



Set-Item -Path xdhyp:\hostingunits\XENSERVERXD01 -



NetworkPath 'xdhyp:\connections\XSG7Pool\Network2.network'

Post a Comment

Blog Archive