Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Windows Powershell Export-CSV column/row value as filename

$
0
0

I'm having a problem with Powershell. I need to Export csv files that contains list of details as names as shown below :


Thanks in advance:)



Export-csv "filesnames.csv"


Filename = SUNTestJan3fri1500AUT.csv, i.e. individual values of "Site+Env+Month+Week+Day+Time+Rebootrights".Please help me out.



Main.CSV


CI
Env
Week
day
Time
Month
Reboot Rights
Policy
Site

vm-xxxxx
Test
3
friday
15:00
January
AUTO
N
SUN

vm-xxxxx1
Test
3
sunday
8:00
February
AUTO
N
SUN

vm-yyyyyy
Prod
4
saturday
6:00
March
NoReboot
N
SUN



Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

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