Set-TssDiscoveryCommandSet
SYNOPSIS
Update a Discovery command set
SYNTAX
Set-TssDiscoveryCommandSet [-TssSession] <Session> -Id <Int32> [-Commands <String>] [-CommandSetName <String>]
[-DiscoveryScannerId <Int32>] [-IsActive] [-ScanTypeId <Int32>] [-WhatIf]
[-Confirm] [<CommonParameters>]
DESCRIPTION
Updates only the fields passed; omitted fields stay unchanged. Returns the updated command set.
EXAMPLES
EXAMPLE 1
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Set-TssDiscoveryCommandSet -TssSession $session -Id 5 -IsActive:$false
Deactivate Discovery command set 5
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
-Id
Discovery command set id
Type: Int32
Parameter Sets: (All)
Aliases: CommandSetId, DiscoveryCommandSetId
Required: True
Position: Named
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Commands
Commands to run, one per line. Each command may be preceded by one comment line starting with #
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-CommandSetName
Command set name
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DiscoveryScannerId
Scanner: 1 = SSH, 2 = ODBC
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-IsActive
Make the command set active
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-ScanTypeId
Scan type: 2 = machines, 3 = accounts
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
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.Discovery.CommandSet
NOTES
Requires TssSession object returned by New-TssSession
RELATED LINKS
https://thycotic-ps.github.io/thycotic.secretserver/commands/discovery/Set-TssDiscoveryCommandSet