Collection based on Windows Service DependOnService value (from registry)

Comments

7 comments

  • Colby Bouma

    You could create a PowerShell Scanner with the code below and use the ServicesDependedOn field.

    Get-Service LanmanWorkstation

    1
    Comment actions Permalink
  • Andrew Gresbach

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

     

    1
    Comment actions Permalink
  • Colby Bouma

    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
    Comment actions Permalink
  • Andrew Gresbach

    awesome thanks ! i knew you'd have the magic trick to make that work!

     

    1
    Comment actions Permalink
  • Andrew Gresbach

    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
    Comment actions Permalink
  • Colby Bouma

    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
    Comment actions Permalink
  • Andrew Gresbach

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

    0
    Comment actions Permalink

Please sign in to leave a comment.