Product Documentation


Nov 17, 2015

Removes addresses from the list of available connection addresses.


Remove-HypHypervisorConnectionAddress [-LiteralPath] <String> [-HypervisorAddress] <String> [-LoggingId <Guid>] [-AdminAddress <String>] [<CommonParameters>]

Detailed Description

Provides the ability to remove addresses that can be used to connect to the hypervisor specified by the hypervisor connection. If all addresses are removed, the connection will not be able to be used until a valid connection is added to the hypervisor connection.



Specifies the path within a Host Service provider to the hosting unit item to which to add the address. The path specified must be in one of the following formats: <drive>:\HostingUnits\<HostingUnitName> or <drive>:\HostingUnits\{HostingUnit Uid>}

Required? true
Default Value  
Accept Pipeline Input? false


Specifies the address to be removed. If this parameter is not provided then all addresses will be removed from the hypervisor connection.

Required? true
Default Value  
Accept Pipeline Input? true (ByValue)


Specifies the identifier of the high-level operation this cmdlet call forms a part of. Citrix Studio and Director typically create high-level operations. PowerShell scripts can also wrap a series of cmdlet calls in a high-level operation by way of the Start-LogHighLevelOperation and Stop-LogHighLevelOperation cmdlets.

Required? false
Default Value  
Accept Pipeline Input? false


Specifies the address of a XenDesktop controller that the PowerShell snap-in will connect to. This can be provided as a host name or an IP address.

Required? false
Default Value LocalHost. Once a value is provided by any cmdlet, this value will become the default.
Accept Pipeline Input? false

Input Type

System.string You can pipe a string the contains a path to Remove-HypHypervisorConnectionAddress (Path parameter).


Alterations to a hypervisor connection will affect all entities that reference the connection. If all addresses are removed from the connection, any other entities that reference the hypervisor connection (e.g. hosting units) will not be able to make new connections to the hypervisor.

In the case of failure the following errors can be produced.

Error Codes



The path provided is not to an item in a sub directory of a hosting unit item.


The hypervisor connection to which the address is to be added could not be located.


The hypervisor for the connection is in maintenance mode.


An error occurred in the service whilst attempting a database operation.


The operation could not be completed as the database for the service is not configured.


An error occurred in the service whilst attempting a database operation - communication to database failed for

for various reasons.


An error occurred whilst communicating with the service.


The user does not have administrative rights to perform this operation.


An unexpected error occurred. To locate more details see the Windows event logs on the controller being used, or examine the XenDesktop logs.


-------------------------- EXAMPLE 1 --------------------------

c:\PS>Remove-HypHypervisorConnectionAddress -LiteralPath XDHyp:\HostingUnits\MyHypervisorConnection -HypervisorAddress 'http:\\'

The command removes the address "http:\\" from the hypervisor connection called "MyHypervisorConnection".

-------------------------- EXAMPLE 2 --------------------------

c:\PS>Get-Item –Path XDHYP:\Connections\* | Remove-HypHypervisorConnectionAddress

The command removes all addresses from all the hypervisor connections currently defined.