Skip to main content

Get-XdrXspmChokePoint

SYNOPSIS

Retrieves choke point data from Microsoft Defender XDR XSPM.

SYNTAX

Get-XdrXspmChokePoint [[-Top] <Int32>] [[-Skip] <Int32>] [-All] [-Force] [-ProgressAction <ActionPreference>]
[<CommonParameters>]

DESCRIPTION

Gets choke point information from the XSPM (Extended Security Posture Management) attack surface API. Choke points are critical nodes in the network that appear in multiple attack paths, making them high-value targets for security hardening and monitoring. The results are ordered by risk level (Critical, High, Medium, Low) and attack path count. Supports pagination and can retrieve all available choke points when using the -All parameter. This function includes caching support with a 30-minute TTL to reduce API calls.

EXAMPLES

EXAMPLE 1

Get-XdrXspmChokePoint
Retrieves the first 100 choke points, ordered by risk level and attack path count.

EXAMPLE 2

Get-XdrXspmChokePoint -Top 50
Retrieves the first 50 choke points.

EXAMPLE 3

Get-XdrXspmChokePoint -Top 100 -Skip 100
Retrieves choke points 101-200 (pagination).

EXAMPLE 4

Get-XdrXspmChokePoint -All
Retrieves all available choke points by automatically handling pagination.

EXAMPLE 5

Get-XdrXspmChokePoint -All -Force
Retrieves all choke points, bypassing the cache.

PARAMETERS

-Top

The maximum number of choke points to return per page. Default is 100. Ignored when -All is specified.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: 100
Accept pipeline input: False
Accept wildcard characters: False

-Skip

The number of choke points to skip for pagination. Default is 0. Ignored when -All is specified.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-All

When specified, retrieves all available choke points by handling pagination automatically.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Force

Bypasses the cache and forces a fresh retrieval from the API.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

The ProgressAction parameter is a common parameter, not a cmdlet parameter. For more information, see about_CommonParameters.

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

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

Array

Returns an array of choke point objects containing node information, attack path counts, and risk levels.

NOTES