停止脚本。

语法

Stop-Transcript [<CommonParameters>]

说明

Stop-Transcript cmdlet 停止通过使用 Start-Transcript cmdlet 启动的脚本。还可以通过结束会话来停止脚本。

参数

<CommonParameters>

此 cmdlet 支持通用参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 about_Commonparameters.

输入和输出

输入类型是指可通过管道传递给 cmdlet 的对象的类型。返回类型是指 Cmdlet 所返回对象的类型。

输入

None

不能通过管道将输入传递给此 cmdlet。

输出

System.String

Stop-Transcript 返回一个包含状态消息和输出文件路径的字符串。

说明

如果尚未启动脚本,则该命令将会失败。

示例 1

C:\PS>stop-transcript

说明
-----------
此命令停止所有正在运行的脚本。






另请参阅




目录