Stop-Transcript
停止文字記錄。
語法
Default (預設值)
Stop-Transcript
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Stop-Transcript Cmdlet 會停止由 Start-Transcript Cmdlet 啟動的文字記錄。
或者,您可以結束會話以停止文字記錄。
範例
範例 1:停止所有文字記錄
Stop-Transcript
此命令會停止所有文字記錄。
參數
-Confirm
在執行 Cmdlet 之前,提示您進行確認。
此參數已在PowerShell 7.4中新增。
參數屬性
| 類型: | SwitchParameter |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
| 別名: | cf |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-WhatIf
顯示 Cmdlet 執行時會發生什麼事。 該 Cmdlet 未被執行。
此參數已在PowerShell 7.4中新增。
參數屬性
| 類型: | SwitchParameter |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
| 別名: | 無線 |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
CommonParameters
此 Cmdlet 支援一般參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。
輸入
None
您不能將物件透過管道傳送到此 Cmdlet。
輸出
String
此 Cmdlet 會傳回包含狀態消息和輸出檔案路徑的字串。
備註
如果尚未啟動文字記錄,命令會失敗。