Set-NSSession
SYNOPSIS
Sets the active NetScaler session.
SYNTAX
DESCRIPTION
Stores a session object as the module default, so later commands can be called without passing -Session. Connect-NSNode already does this, so this function is mainly used to switch back to an earlier session when working with more than one NetScaler in the same console.
EXAMPLES
EXAMPLE 1
Makes a previously stored session the active one.
EXAMPLE 2
$prod = Connect-NSNode -ManagementUrl https://prod.example.local -Credential $cred -PassThru $lab | Set-NSSession
Connects to two NetScalers and switches the active session back to the lab node.
PARAMETERS
-Session
Session object to make active, as returned by Connect-NSNode -PassThru or Get-NSSession. Accepts pipeline input.
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
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/set/