Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Help me to filter myCollection data

$
0
0

Hi,

I'm really stuckwithmy PowerShell output...
I have a piece of code that will fill my $OutputCollection.
When I print $OutputCollection to my screen I get something like:

ServerA KB3032359
ServerB KB3032359
ServerB KB3033889
ServerC KB3033889
ServerA KB3034196
ServerB KB3034196
ServerC KB3034196
ServerC KB890830
ServerA KB890830
ServerB KB890830
ServerA KB890830
ServerB KB890830
ServerA KB890830
ServerC KB890830
ServerA KB890830

What I need is to get an output (let's say as HTML page) that will result in:

  PATCH          ServerA   ServerB   ServerC   
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
KB3032359          x           x              -      
KB3033889          -           x              x     
KB3034196          x           -              -
KB890830            x           x             x

The members in my $OutputCollection are 'Server' and 'PATCH'

Can anybody tell me how to do this?

Thanks in advance!
LeonBns


Viewing all articles
Browse latest Browse all 6937

Trending Articles