Set-TssDiscoveryScanner
SYNOPSIS
Update a discovery scanner
SYNTAX
Set-TssDiscoveryScanner [-TssSession] <Session> -Id <Int32> [-BaseScannerId <Int32>] [-CommandSetId <Int32>]
[-InputScanItemTemplateId <Int32>] [-IsActive] [-ItemScannerDescription <String>] [-ItemScannerName <String>]
[-OutputScanItemTemplateId <Int32>] [-ScannerId <Int32>] [-ScriptArguments <String>] [-ScriptId <Int32>]
[-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Updates a discovery scanner. Only the parameters given are changed. Built-in scanners usually cannot be edited and return an error.
EXAMPLES
EXAMPLE 1
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Set-TssDiscoveryScanner -TssSession $session -Id 42 -ItemScannerName 'Find Linux accounts'
Rename scanner 42
EXAMPLE 2
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Set-TssDiscoveryScanner -TssSession $session -Id 42 -IsActive:$false
Make scanner 42 inactive
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
Scanner ID
Type: Int32
Parameter Sets: (All)
Aliases: ItemScannerId
Required: True
Position: Named
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-BaseScannerId
Base scanner ID
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-CommandSetId
Command set ID
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-InputScanItemTemplateId
ID of the scan template the scanner takes as input
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-IsActive
Make the scanner active, or inactive with -IsActive:$false
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-ItemScannerDescription
Scanner description
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ItemScannerName
Scanner name
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OutputScanItemTemplateId
ID of the scan template the scanner returns
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-ScannerId
Scanner type ID
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-ScriptArguments
Arguments passed to the scanner script
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ScriptId
ID of the script the scanner runs
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.Scanner
NOTES
Requires TssSession object returned by New-TssSession
RELATED LINKS
https://thycotic-ps.github.io/thycotic.secretserver/commands/discovery/Set-TssDiscoveryScanner