TrimSpaces Parameter (Connect-CSV Cmdlet)
Set to True if you want the provider to trim leading and trailing spaces in a cell containing a non-quoted value.
Syntax
Connect-CSV -TrimSpaces SwitchParameter
Data Type
bool
Default Value
false
Remarks
Set to True if you want the provider to trim leading and trailing spaces in a cell containing a non-quoted value. If set to False and the first character in a cell is not the quote character, the cell is treated as a literal non-quoted value.