< Back

Disconnect-vRNIServer

Sat Jan 18, 2020 10:08 pm

NAME Disconnect-vRNIServer



SYNOPSIS

Destroys the Connection object if provided, otherwise this destroys the

$defaultvRNIConnection global variable if it exists.





SYNTAX

Disconnect-vRNIServer [[-Connection] <PSObject>] [<CommonParameters>]





DESCRIPTION

Although REST is not connection-orientated, vRNI does remember the authentication

token which is used throughout the session. This cmdlet also invalidates the

authentication token from vRNI, so it can no longer be used.





PARAMETERS

-Connection <PSObject>

vRNI Connection object



Required? false

Position? 1

Default value $defaultvRNIConnection

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Disconnect-vRNIServer



Invalidates and removes the global default connection variable.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Disconnect-vRNIServer -Connection $MyConnection



Invalidates the authentication token of a specific connection object











RELATED LINKS