How to capture output in a variable rather than a logfile?

后端 未结 0 1551
无人共我
无人共我 2021-02-11 13:31

This would write the output to a logfile:

& $Env:WinDir\\system32\\inetsrv\\appcmd.exe >test.log

But what if I wanted to keep the output

相关标签:
回答
  • 消灭零回复
提交回复
热议问题