Syntax
Connect-NsxtServer [-Server] <String[]> [-Port <Int32>] [-User <String>] [-Password <SecureString>] [-Credential <PSCredential>] [-NotDefault] [-SaveCredentials] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet establishes a connection to an NSX-T server.Parameters
Return Type
VMware.VimAutomation.Cis.Nsxt.Types.V1.NsxtServerNotes
Examples
-------------- Example 1 --------------
Connect-NsxtServer -Server $serverAddress -User $user -Password $pass
Connects to an NSX-T server by using the User and Password parameters.
-------------- Example 2 --------------
$credential = Get-Credential Connect-NsxtServer -Server $serverAddress -Credential $credential
Connects to an NSX-T server by using the Credential parameter.
-------------- Example 3 --------------
Connect-NsxtServer -Server $serverAddress -Credential -User $user -Password $pass -SaveCredentials
Connects to an NSX-T server and stores the credentials in the credential store.
-------------- Example 4 --------------
Connect-NsxtServer -Server $serverAddress -User $user
Connects to an NSX-T server when a record for the specified server and user is available in the credential store.