I want to collect all output from my script in a log file and must use write-output instaed of write-host.
Write-Output "Server:" $a
looks like
Server:
.
foo
Do I really have to write to write
write-output $("sfdghk:" + $a)
to get Server:Foo
Thanks -jt
See Question&Answers more detail:os