Powershell Xpath to Query to find the membership of the set.


  • Hi All,

    Can we use Powershell to find the membership of the set ?

    I have to get the list of membership to the set All people using powershell.

    The below is the powershell I am trying to achieve to get the list of membership, kindly advice.

    # Load FIMAutomation module
     if(@(Get-PSSnapin | ? { $_.Name -eq "FIMAutomation" } ).Count -eq 0)
         Add-PSSnapin FIMAutomation;
    $Set = Export-FIMConfig -customConfig "/Set[DisplayName='All people'/ComputedMember]" -Uri "http://localhost:5725"  -OnlyBaseResources


    Anirban Singha(India).

    Saturday, August 17, 2013 2:19 PM


  • To return a list of all Person references to the Set, 'All People', try the following XPath query:

    /Person[ObjectID=/Set[DisplayName='All People']/ComputedMember]

    • Proposed as answer by gdtilghman Monday, August 19, 2013 8:57 PM
    • Marked as answer by AnirbanSingha Wednesday, August 21, 2013 2:33 PM
    Monday, August 19, 2013 2:04 PM

All replies