Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

export-csv changes cell value with export-csv ...but value is correct in txt

$
0
0

hello.  thanks for the time.  I had a question in regards to how to spit out a result.  i am exporting computer systems information for all users. when i export using export-csv some cell values get overwritten by Excel as like a numeric value (i.e. if the serial number is like 12346789449 ... excel changes that to 1.4E2 ... I don't want since it is ruining the results.  When i export to text file it the result works however it is not in a column format.  so i am looking for either to excel to stop converting the value or how to export in txt in a column format.  I tried format-table but no go.

MachineType          : desktop
MachineName  : mycomputer
MachineModel         : dell
MachineSerial            : 134rfh44433
MachineOS            : windows

so how can i get that into a column format?  thanks.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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