Product Documentation


Oct 21, 2016

Set the controller that will be used by the cmdlets that form the Host Service PowerShell snap-in.


Set-HypAdminConnection [-AdminAddress <String>] [<CommonParameters>]

Detailed Description

Provides the ability to set the default controller address that will be used by the cmdlets in order to communicate with the controller. Most Host Service cmdlets take an 'AdminAddress' parameter that can be used to define the controller (when used this will override this setting). However the Set-Location cmdlet(cd) in the Host Service provider cannot offer this option and the controller address must be set using this cmdlet if no other cmdlets have been used to set the address previously during the use of the current runspace.

Related topics



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


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

c:\PS>Set-HypAdminConnection -AdminAddress

This command sets the controller address for the commands to be "". All commands run will use this address until it is altered either by another call to this command, or the use of the 'AdminAddress' parameter on another command in the Host Service snap-in.