I am new to PS and using the PowerShell ISE tool. At the bottom of my ISE screen I have a blue command window. In that window I will type this.
Get-Content "c:\temp\atl.txt" the output is displayed like this.
NameTypeDescriptionOffice Communications Server Address
ATLWD022378Computer
ATLWDJSMOTHERComputer
ATLWDLCROTTY07Computer
ATLWDPIERCEOF7Computer
ATLWLATLTEMP04Computer
ATLWLCPIERCEComputer
ATLWLCTENLEY7Computer
ATLWLGCOOKL7Computer
ATLWLSKORTH7Computer
ATLWLTEMP3Computer
ATLWLVNEBUS7Computer
Then, from the top of my ISE window I execute this:
$File = gc "c:\temp\atl.txt"
Write-Host $File
The output is displayed on one long line.
NameTypeDescriptionOffice Communications Server Address ATLWD022378Computer
.
Why the difference in the output format? Just wondering.