Collection based on Windows Service DependOnService value (from registry)
Andrew Gresbach
We are needing a collection to show us all VM's that are missing a specific value from the DependOnService key value in the registry and trying to find the best way to set it up and hoping someone might have some advice.....basically per the screenshot here we want to show any desktops missing the "PvsVmAgent" value in the DependOnService Value Name.

1
Comments
You could create a PowerShell Scanner with the code below and use the ServicesDependedOn field.
well dang that sounds promising.....the results for that show this in Inventory so far so i must have something off
Oops, I forgot that field is an array. If you don't want the values from any other fields, you can do this:
awesome thanks ! i knew you'd have the magic trick to make that work!
alright so i'm struggling w/ a dynamic collection to show any desktops that DON'T have that PvsVmAgent in one of the ServicesDependedOn. I was able to build one to show any that has it fine using the powershell scanner name field but stuck on the later. i've tried all kinds of variations like below but ones that don't have it still wont show up
You're close. Change your Group Filter to "Not Any" ("Not All" should work, but may lead to unexpected results if you add more Value Filters), and your Comparison to "Contains".
ahhh thats its! i always get stuck on that one! thanks for the quick help!