Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 632 Bytes

Analyze_Enterprise_Search_Results.md

File metadata and controls

20 lines (15 loc) · 632 Bytes

Analyze Enterprise Search Results

#Get all searches
$s = hx Searches list -limit 20

#Pick the search you want to analyze
$p = $s.data.entries | Out-GridView -PassThru

#Get results
$r = hx Searches get-childitem -ID $p._id

#Total count
$r.data.entries.results.data.count

#Sorting results, selecting specific properties, view in GUI.
$r.data.entries.results.data | sort-object "parent process path", "parent process name", "file full path" | select-object "parent process path", "parent process name", "file full path" | out-gridview

#Filter results
$r.data.entries|?{$_.results.data."file full path" -match "cmd\.exe"}