Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Collection based on Windows Service DependOnService value (from registry)

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

7 comments
Date Votes
  • You could create a PowerShell Scanner with the code below and use the ServicesDependedOn field.

    Get-Service LanmanWorkstation

    1
  • well dang that sounds promising.....the results for that show this in Inventory  so far so i must have something off

     

    1
  • Oops, I forgot that field is an array. If you don't want the values from any other fields, you can do this:

    (Get-Service LanmanWorkstation).ServicesDependedOn
    1
  • awesome thanks ! i knew you'd have the magic trick to make that work!

     

    1
  • 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

    0
  • 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".

    0
  • ahhh thats its! i always get stuck on that one!  thanks for the quick help!

    0