Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to find and count value in array with powershell

$
0
0

Hi Guys

  I have a CSV file as below

++++++++++++++++++++++

ServerName,Contact

server01,Jacky

server02,Tommy

server03,Jacky

Server04,Frank

++++++++++++++++++++++

  How to make a script to summrize the contact owned servers ,like Jacky own Server01 and Server03.

  At best i can have a variable to save all the corresponding value, like if i type $jacky, the output should be Server01,Server03


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>