Join two results in Powershell

Posted by Hinek on Stack Overflow See other posts from Stack Overflow or by Hinek
Published on 2010-04-20T09:17:46Z Indexed on 2010/04/20 9:33 UTC
Read the original article Hit count: 183

Filed under:
|
|

I've got two CMDlets that return lists of objects. One returns objects of the type SPSolution, which contains the property Id, the other returns objects of the type SPFeature with a property SolutionId.

Now I want to join/merge this data something like this:

$f = Get-Feature
$s = Get-Solution
$result = <JOIN> $f $s
          <ON> $f.SolutionId = $s.Id
          <SELECT> FeatureName = $f.DisplayName, SolutionName = $s.Name

© Stack Overflow or respective owner

Related posts about powershell

Related posts about cmdlets