Powershell Commands
PS C:\> asnp Citrix*
PS C:\> dir XDHyp:\HostingUnits
PSPath : Citrix.Host.Admin.V1\Citrix.Hypervisor::XDHyp:\Hosting
Units\XENSERVERXD01
PSParentPath : Citrix.Host.Admin.V1\Citrix.Hypervisor::XDHyp:\Hosting
Units
PSChildName : XENSERVERXD01
PSDrive : XDHyp
PSProvider : Citrix.Host.Admin.V1\Citrix.Hypervisor
PSIsContainer : True
HostingUnitUid : 9b0ee1f0-2b45-45d5-9664-8cad350130f8
HostingUnitName : XENSERVERXD01
HypervisorConnection : XSG7Pool
RootPath : XDHyp:\Connections\XSG7Pool\
RootId :
NetworkPath : XDHyp:\Connections\XSG7Pool\VLAN 203.network
NetworkId : d8f21da0-6697-4fce-925b-99c19d4bae70
Storage : {XDHyp:\Connections\XSG7Pool\iSCSI 500GB.storage}
VMTaggingEnabled : True
UseLocalStorageCaching : False
Metadata : {}
Pay attention to the text in red and run the following with the vlan you want the VM to use.
Set-Item -Path ‘xdhyp:\hostingunits\XENSERVERXD01’ -NetworkPath ‘xdhyp:\connections\XSG7Pool\VLAN 47.network’