Add-PASPTAExcludedTarget

Add-PASPTAExcludedTarget

SYNOPSIS

Adds Excluded target IP/subnet value in PTA administration configuration

SYNTAX

Add-PASPTAExcludedTarget [-cidr] <String> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Adds Excluded target IP/subnet value in PTA administration configuration

EXAMPLES

EXAMPLE 1

Add-PASPTAExcludedTarget -cidr 192.168.60.10/24

Adds 192.168.60.10/24 as an excluded target in PTA administration

EXAMPLE 2

[PSCustomObject]@{cidr = '10.10.0.0/16'} | Add-PASPTAExcludedTarget

Adds 10.10.0.0/16 as an excluded target using pipeline input

EXAMPLE 3

Add-PASPTAExcludedTarget -cidr 172.16.0.0/12 -WhatIf

Shows what would happen if 172.16.0.0/12 were added as an excluded target, without making the change

EXAMPLE 4

Import-Csv .\excluded-targets.csv | Add-PASPTAExcludedTarget

Reads a list of CIDR values from a CSV file with a “cidr” column and adds each one as an excluded target in PTA administration

PARAMETERS

-cidr

IP/Subnet cidr value

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
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

NOTES

https://pspas.pspete.dev/commands/Add-PASPTAExcludedTarget

https://docs.cyberark.com/PAS/Latest/en/Content/WebServices/UpdateAdministration.htm