Search-TssScript
SYNOPSIS
Search Secret Server scripts
SYNTAX
Search-TssScript [-TssSession] <Session> [-SearchText <String>] [-IncludeInactive] [-SortBy <String>]
[<CommonParameters>]
DESCRIPTION
Search Secret Server scripts (Admin > Scripts)
EXAMPLES
EXAMPLE 1
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Search-TssScript -TssSession $session -SearchText admin
Return list of Scripts that have the text "admin" in the name
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
-SearchText
Search Text
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IncludeInactive
Include inactive scripts
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-SortBy
Sort by specific property, default ScriptId
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: ScriptId
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.Scripts.Summary
NOTES
Requires TssSession object returned by New-TssSession
RELATED LINKS
https://thycotic-ps.github.io/thycotic.secretserver/commands/scripts/Search-TssScript