I have a piece of code which generates a CSV of sharenames from a filer.
Its a tab-delimited CSV and is just the sharenames, no other details are included.
I'd like to take the output:
010
2012 Comp
2012 Comp Plan Team
And replace it with this:
\\<filer>\010
\\<filer>\2012 Comp
\\<filer>\2012 Comp Plan Team
Right now I have the following:
$Content = import-csv C:\temp\new.txt -Delimiter "`t"
Can I use an Add-Member command to add in the new property/values to the array? Or am I going about this the wrong way?
The comments have been great so far, thanks guys. I forgot to add another point to this. I was wondering how I might add another column to the csv? Strictly for filer names. I'm thinking of producing a massive csv of share names and filer names. So just wanted to know how I could add that into it?