Script to list all members of a criteria set or group in FIM
Does anyone have a powershell script that lists all members, e.g. to a text file, of a criteria set or group in FIM?
October 15th, 2010 4:22pm

Off the top of my head (i.e. writing directly into this box, well via notepad, so please excuse typo's), something like this should work: PARAM ( $Target = "Dummy" ) if(@(Get-PSSnapin | Where-Object { $_.Name -eq "FIMAutomation" }).Count -eq 0) { Add-PSSnapin "FIMAutomation"; } if(($computedMember = Export-FIMConfig -OnlyBaseResources -Custom "/*[ObjectID = /*[DisplayName = '${Target}']/ComputedMember]") -ne $null) { [String[]]$groupOrSetMemberNames = @(); foreach($member in $computedMember) { [String]$displayName = ($member.ResourceManagementObject.ResourceManagementAttributes |Where-Object { $_.AttributeName -eq "DisplayName" }).Value; $groupOrSetMemberNames += $displayName; } } $groupOrSetMemberNames | Format-List
Free Windows Admin Tool Kit Click here and download it now
October 15th, 2010 5:40pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics