Syntax
Connect-HVServer [-Server] <String> [-Domain [<String>]] -User <String> -Password <SecureString> [-NotDefault] [-Force] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet establishes a connection to the Horizon API service of the Horizon Connection server specified by the -Server parameter.Parameters
Return Type
ViewServerNotes
If PowerCLI runs in the non-interactive mode, you do not need to enter user credentials.Examples
-------------- Example 1 --------------
Connect-HVServer -Server server -User username -Password pass -Domain domain
Connects to the Horizon API service that runs on an instance of a Horizon Connection server by using the User, Password, and Domain parameters.
-------------- Example 2 --------------
$cs = Connect-HVServer -Server server -Username user -Password pass -Domain domain; Connect-HVServer -Server server -SessionId $cs.SessionSecret
Connects to the Horizon API service that runs on an instance of a Horizon Connection server with an existing session and returns the Horizon API service object. Username is alias to parameter user.
-------------- Example 3 --------------
Connect-HVServer -Server server -User username@domain -Password pass
Connects to the Horizon API service of a Horizon Connection server by passing the domain as a part of the user name and returns the Horizon API service object.
-------------- Example 4 --------------
Connect-HVServer -Server server
Connects to the Horizon API service that runs on an instance of a Horizon Connection server. The user, domain, and password parameters are read by the PowerCLI user interface. Returns the Horizon API service object.