更新时间:2023-11-14 16:19:40
没有捕获任何exe输出。这是一个显示塞。我讨厌说,但我发现这样做的***的方法是:
Start-Transcript doesn't catch any exe output. That's a show stopper for me. I hate to say it but the best way I've found to do this is:
cmd /c powershell.exe -file c:\users\hillr\foo.ps1 > foo.log
捕获所有AFAICT。
This captures everything AFAICT.