开始转录:此主机不支持转录
问题描述:
我想在 Windows Server 2008 R2 上开始转录
I want to start a transcript on a Windows Server 2008 R2
Start-Transcript -path C:\Temp\test.txt
"Hello!"
Stop-Transcript
但 PowerShell 返回以下错误消息:
But PowerShell returns the following error message:
Start-Transcript : 此主机不支持转录.
Start-Transcript : This host does not support transcription.
如何激活成绩单?
答
Windows PowerShell v4 ISE 及更低版本不支持转录.您必须使用命令行来运行命令行开关.
Windows PowerShell v4 ISE and lower do not support transcription. You must use the command line to run the commandlet.
ISE 本身支持来自 PowerShell v5 的 Start-Transcript.
From PowerShell v5 Start-Transcript is supported natively in ISE.