Syntax
Disconnect-HVServer [[-Server] <ViewServer[]>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet disconnects the connection to a Horizon API service that runs on an instance of the Horizon Connection server specified by the -Server parameter.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Server | ViewServer[] | Specifies the Horizon API service that runs on an instance of a Horizon Connection server that you want to disconnect from. | false | true | |
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | false | |
Force | Specifies that you want to remove all existing connections to the specified servers. | false | false | ||
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false |
Return Type
NoneNotes
Examples
-------------- Example 1 --------------
$HVServer = Connect-HVServer -Server server; Disconnect-HVServer -server $HVServer
Disconnects the connection to the specified Horizon API service that runs on an instance of a Horizon Connection server.
-------------- Example 2 --------------
$HVServer = Connect-HVServer -Server server; Disconnect-HVServer -Force *
Disconnects all connected Horizon API services that run on instances of Horizon Connection servers.