Skip to content

Find FalconHostname

bk-cs edited this page Oct 20, 2022 · 19 revisions

Find-FalconHostname

SYNOPSIS

Find hosts using a list of hostnames

DESCRIPTION

Performs an exact match hostname search in groups of 20.

Requires 'Hosts: Read'.

PARAMETERS

Name Type Min Max Allowed Pipeline PipelineByName Description
Path String Path to a plaintext file containing hostnames
Array String[] X An array containing one or more hostnames

SYNTAX

Find-FalconHostname [-Path] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Find-FalconHostname -Array <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]

USAGE

Finding hosts with a list of hostnames

A search with Get-FalconHost and a hostname filter is used to find device_id values that match a specific hostname. To find hosts using a list of hostnames, you can loop through the list or use Find-FalconHostname.

Find-FalconHostname can accept a list of hostnames as an array, or from a plaintext file containing a hostname on each line. If a match is found, the hostname and device_id will be output, otherwise a warning message will be generated.

'hostname1','hostname2' | Find-FalconHostname
Find-FalconHostname -Array 'hostname3','hostname4'
Find-FalconHostname -Path .\my_hostname_list.txt

2022-10-20: PSFalcon v2.2.3

Clone this wiki locally