Anyone have any luck using MetaScript filters? Will take any pointers on how to use the get-immycomputer -inventory keys processes to do something like:
Get-ImmyComputer -InventoryKeys Software, Processes | Where-Object {
-not ($_.Inventory.Processes.Name -contains “HuntressAgent.exe”)
}
Or
Get-ImmyComputer -InventoryKeys Software | ?{$_.Inventory.Software.DisplayName -like “Huntress Agent”} | select -First 50
but would have an additional pipe to check if the process is running. Just now dabbing into metascripting and its quirks. Currently the processes filter doesnt work but software does return computers with huntress installed at least.
Eventually I’ll be running maintenance tasks to pull compliance but Im looking at ad-hoc remedial options too, where this filter will pull all computers where the service doesn’t run, then I target those with a script or deploy Huntress to them. Appreciate any insight!