-
Notifications
You must be signed in to change notification settings - Fork 2
Get MdeMachineByFilter
Jan-Henrik Damaschke edited this page Sep 15, 2022
·
1 revision
external help file: PSMDE-help.xml Module Name: PSMDE online version: https://docs.microsoft.com/en-us/microsoft-365/security/defender-endpoint/get-machine-related-alerts?view=o365-worldwide schema: 2.0.0
Gets one or multiple machine objects by OData filter
Get-MdeMachineByFilter [-filter] <String> [<CommonParameters>]
Returns all Defender for Endpoint machines that matches the filter. For details, refer to the [OData docs article](https://docs.microsoft.com/en-us/microsoft-365/security/defender-endpoint/exposed-apis-odata-samples?view=o365-worldwide)
$machines = Get-MdeMachineByFilter -filter 'lastSeen gt 2018-08-01Z'
$machines = Get-MdeMachineByFilter -filter "startswith(computerDnsName,'mymachine')"
$machines = Get-MdeMachineByFilter -filter "healthStatus eq 'Active'"
{{ Fill filter Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Jan-Henrik Damaschke