Set-TssSecretLauncherSession
SYNOPSIS
Act on an active secret launcher session
SYNTAX
Set-TssSecretLauncherSession [-TssSession] <Session> -Action <String> [-Message <String>] [-SecretId <Int32>]
[-SecretSessionId <Int32>] [-SecretSessionKey <String>] [-SessionGuid <String>]
[-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Terminate an active secret launcher session, limit it, or send its user a message. Identify the session by -SecretSessionId, -SecretSessionKey or -SessionGuid together with -SecretId.
EXAMPLES
EXAMPLE 1
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Search-TssSecretLauncherSession -TssSession $session -SecretId 42 | Set-TssSecretLauncherSession -TssSession $session -Action Terminate
Terminate every active launcher session of secret 42
EXAMPLE 2
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Set-TssSecretLauncherSession -TssSession $session -SecretId 42 -SecretSessionId 7 -Action MessageOnly -Message 'Session ends in 5 minutes'
Send a message to the user of session 7
PARAMETERS
-TssSession
TssSession object created by New-TssSession for authentication
Type: Session
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Action
Terminate, LimitSession or MessageOnly
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Message
Message shown to the session user (needed for MessageOnly)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SecretId
Id of the secret the session belongs to
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-SecretSessionId
Secret session Id
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-SecretSessionKey
Secret session key
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SessionGuid
Launcher session GUID
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
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
Thycotic.PowerShell.Secrets.LauncherSessionActionResult
NOTES
Requires TssSession object returned by New-TssSession
RELATED LINKS
https://thycotic-ps.github.io/thycotic.secretserver/commands/secrets/Set-TssSecretLauncherSession