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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…