Skip to content

Get SophosCentralEndpoint

simon-r-watson edited this page May 10, 2023 · 4 revisions

external help file: SophosCentral-help.xml Module Name: SophosCentral online version: https://developer.sophos.com/docs/endpoint-v1/1/routes/endpoints/get schema: 2.0.0

Get-SophosCentralEndpoint

SYNOPSIS

Get Endpoints in Sophos Central (Workstations, Servers)

SYNTAX

Get-SophosCentralEndpoint [[-HealthStatus] <String[]>] [[-Type] <String[]>]
 [[-TamperProtectionEnabled] <Boolean>] [[-LockdownStatus] <String[]>] [[-IsolationStatus] <String>]
 [[-HostnameContains] <String>] [[-IpAddresses] <String>] [[-MacAddresses] <String>]
 [[-LastSeenBefore] <Object>] [[-LastSeenAfter] <Object>] [[-ID] <String[]>] [<CommonParameters>]

DESCRIPTION

Get Endpoints in Sophos Central (Workstations, Servers)

EXAMPLES

EXAMPLE 1

Get-SophosCentralEndpoint

List all endpoints in the tenant

EXAMPLE 2

Get-SophosCentralEndpoint -HealthStatus 'bad'

List all endpoints with a bad health status

EXAMPLE 3

Get-SophosCentralEndpoint -TamperProtectionEnabled $false

List all endpoints with tamper protection disabled

EXAMPLE 4

Get-SophosCentralEndpoint -LastSeenBefore '-P90D'

List all endpoints seen more than 90 day ago

EXAMPLE 5

Get-SophosCentralEndpoint -LastSeenAfter '-P1D'

List all endpoints seen in the last 1 day

EXAMPLE 6

Get-SophosCentralEndpoint -LastSeenAfter (Get-Date).AddDays(-1)

List all endpoints seen in the last 1 day

EXAMPLE 7

Get-SophosCentralEndpoint -LastSeenAfter '-PT2H'

List all endpoints seen in the last 2 hours

EXAMPLE 8

Get-SophosCentralEndpoint -LastSeenAfter '-PT20M'

List all endpoints seen in the last 20 minutes

EXAMPLE 9

Get-SophosCentralEndpoint -LastSeenAfter '-P3DT4H5M0S'

List all endpoints seen in the last 3 days 4 hours 5 minutes and 0 seconds

PARAMETERS

-HealthStatus

Find endpoints by health status. The following values are allowed: bad, good, suspicious, unknown

Type: String[]
Parameter Sets: (All)
Aliases:

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

-Type

Find endpoints by type. The following values are allowed: computer, server, securityVm

Type: String[]
Parameter Sets: (All)
Aliases:

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

-TamperProtectionEnabled

Find endpoints by whether Tamper Protection is turned on.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-LockdownStatus

Find endpoints by lockdown status.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-IsolationStatus

Find endpoints by isolation status.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-HostnameContains

Find endpoints where the hostname contains the given string. Only the first 10 characters of the given string are matched.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-IpAddresses

Find endpoints by IP addresses.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MacAddresses

Find endpoints by MAC Addresses. Can be in EUI-48 or EUI-64 format, case insensitive, colon, hyphen or dot separated, or with no separator e.g. 01:23:45:67:89:AB, 01-23-45-67-89-ab, 0123.4567.89ab, 0123456789ab, 01:23:45:67:89:ab:cd:ef.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 8
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-LastSeenBefore

Find endpoints last seen before this. Accepts either [datetime] or a string in the ISO 8601 Duration format (https://en.wikipedia.org/wiki/ISO_8601#Durations)

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 9
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-LastSeenAfter

Find endpoints last seen after this. Accepts either [datetime] or a string in the ISO 8601 Duration format (https://en.wikipedia.org/wiki/ISO_8601#Durations)

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 10
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ID

Find endpoints with the specified IDs.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 11
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

RELATED LINKS

https://developer.sophos.com/docs/endpoint-v1/1/routes/endpoints/get

Clone this wiki locally