Get-NSSession
SYNOPSIS
Gets the active NetScaler session.
SYNTAX
DESCRIPTION
Returns the session object stored by Connect-NSNode or Set-NSSession. Most functions in this module fall back to this session when no -Session is passed, so this is mainly useful for inspecting the current connection or passing it explicitly to another command.
Returns nothing when no session is active.
EXAMPLES
EXAMPLE 1
Returns the active session object, or nothing when not connected.
EXAMPLE 2
Shows which NetScaler the current session is connected to.
PARAMETERS
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
RELATED LINKS
https://netscalertoolkit.j81.nl/module/reference/common/nssession/get/