Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Show two seperate columns but still rid the duplicates in powershell

$
0
0

 Select@{Label="Index"; Expression ={"$($_.'users')$($_.'FULL NAME')"} } -Unique|export-csv"C:\temp\Users.csv"

How do I separate the two into separate cells?  or how can I have a comma to separate the two Items in the Expression?

I can't separate them or the -Unique will not work for me with two different columns. I am trying to get rid of the duplicates but still have two columns of data.


Thanks in advance


POWERSHELL


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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