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

Windows Powershell Export-CSV column/row value as filename

$
0
0

Main.CSV

CIEnvWeekdayTimeMonthReboot RightsPolicySite
vm-xxxxxTest3 friday15:00JanuaryAUTONSUN
vm-xxxxx1Test3sunday8:00FebruaryAUTONSUN
vm-yyyyyyProd4saturday6:00MarchNoRebootNSUN

Kindly help me exporting new CSV's and the file name of new csv's should be the values of Coulmns as above.

Eg.

Export-csv "filesnames.csv"

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


Viewing all articles
Browse latest Browse all 6937

Trending Articles