Syntax
Disconnect-OMServer [[-Server] <OMServer[]>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet closes the connection to one or more vRealize Operations Manager servers.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Server | OMServer[] | Specifies the vRealize Operations Manager servers you want to disconnect from. | false | true (ByValue) | |
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 | SwitchParameter | 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 --------------
$server = Connect-OMServer -Server 'server_name' -User 'user@domain' -Password 'user_password' Disconnect-OMServer -Server serverIP -Force
Disconnects the specified vRealize Operations Manager server and closes all existing connections to it.
-------------- Example 2 --------------
Connect-OMServer -Server 'server_name' -User 'user@domain' -Password 'user_password' Connect-OMServer -Server 'server2_name' -User 'user@domain' -Password 'user_password' Disconnect-OMServer * -Confirm:$false
Disconnects all connected vRealize Operations Manager servers without asking for confirmation.