VMware Cloud Community
RonPSSC
Enthusiast
Enthusiast
Jump to solution

-UseCulture Switch - Import/Export-Csv. What is it?

Hi;

I've seen many references to the -UseCulture parameter when importing content or exporting results of scripts from/to csv files. I've tried in vain to locate an actual description or purpose of this function. Can anyone help direct me as to where I can find this or elaborate on this parameter?

Thanks. Ron

1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

It forces the Export-Csv cmdlet to use the separator that is used in your regional settings to be used.

By default it is a comma, but in other regions it can be for example a semi-column.

See also Export CSV with Culture-Specific Delimiter


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

It forces the Export-Csv cmdlet to use the separator that is used in your regional settings to be used.

By default it is a comma, but in other regions it can be for example a semi-column.

See also Export CSV with Culture-Specific Delimiter


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
RonPSSC
Enthusiast
Enthusiast
Jump to solution

Great. Thanks for the Reply. So, in essence, good practice to use but is not a critical element?

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Correct, if your on EN-US (the default), there is no reason to use it.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

RonPSSC
Enthusiast
Enthusiast
Jump to solution

Thx again, Luc, for the additional clarification.:smileycool:

Ron

0 Kudos