我想从日志文件中收集脚本的所有输出,并且必须使用write-output instaed of write-host.
Write-Output "Server:" $a 好像
Write-Output "Server:" $a
Server: foo.
Server: foo
我是否真的必须写信 write-output $("sfdghk:" + $a)才能获得Server:Foo
write-output $("sfdghk:" + $a)
Server:Foo
谢谢-jt
powershell
powershell ×1