Disconnect-NsxtServer

This cmdlet closes the connection to one or more NSX-T servers.

Syntax

[-Force]
[-Server  <CisServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
Force
SwitchParameter named Specifies that you want to remove all existing connections to the specified NSX-T servers.
optional
Server
CisServer[] named
  • wildcards
  • pipeline
  • Specifies the NSX-T servers you want to disconnect from.

    Output

    Examples


    Example 1

    $server = Connect-NsxtServer -Server 'server_name' -User 'user@domain' -Password 'user_password'
    Disconnect-NsxtServer $server -Confirm:$false

    Disconnects the specified NSX-T server without asking for confirmation.

    Example 2

    Connect-NsxtServer -Server 'server_name' -User 'user@domain' -Password 'user_password'
    Connect-NsxtServer -Server 'server2_name' -User 'user@domain' -Password 'user_password'
    Disconnect-NsxtServer * -Confirm:$false

    Disconnects all connected NSX-T servers without asking for confirmation.

    Related Commands

    Feedback

    Was this page helpful?