Set-TssDiscoverySourceFilter
SYNOPSIS
Update an OU filter of a discovery source
SYNTAX
Set-TssDiscoverySourceFilter [-TssSession] <Session> -DiscoverySourceId <Int32> -MemberId <Int32>
[-ScanTargetType <String>] [-SecretId <Int32>] [-SiteId <Int32>]
[-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Updates the site, credential secret or scan target of one OU or container in the scope of an Active Directory discovery source. Only the parameters given are changed.
EXAMPLES
EXAMPLE 1
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Set-TssDiscoverySourceFilter -TssSession $session -DiscoverySourceId 3 -MemberId 7 -ScanTargetType Computers
Scan only computers in filter 7 of discovery source 3
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
-DiscoverySourceId
Discovery source ID
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-MemberId
Filter ID, the DiscoveryFilterId of an item of Get-TssDiscoverySourceFilter
Type: Int32
Parameter Sets: (All)
Aliases: DiscoveryFilterId
Required: True
Position: Named
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-ScanTargetType
What to scan in the OU: Users, Computers or UsersAndComputers
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 used to scan the OU
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-SiteId
ID of the site that scans the OU
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.SourceFilterItem
NOTES
Requires TssSession object returned by New-TssSession
RELATED LINKS
https://thycotic-ps.github.io/thycotic.secretserver/commands/discovery/Set-TssDiscoverySourceFilter