- Microsoft Exchange Server PowerShell Essentials
- Biswanath Banerjee
- 258字
- 2021-07-16 13:04:56
Understanding Logging and Transcripts
The transcript feature in PowerShell helps you to record all your cmdlets and activities at the prompt. This feature is not available for use in the PowerShell application during the writing of this book. This will help you capture all the commands and outputs from the commands that appear in the console in a text file that you specify using the start-transcript
cmdlet.
The Start-transcript
cmdlet initializes a transcript file, and then creates records of all the subsequent actions in the PowerShell session.
The syntax is shown as follows:

Here are some of the important parameters that you should know about the start-transcript
cmdlet. To save the transcript file to a specified path, use the –Path
parameter. You cannot use wildcards when you set the path, but you can also use variables. The directories in the path must exist or the command will fail.
The default behavior of the Start-Transcript
cmdlet is to overwrite any file that is in the transcript path unless the –noClobber
parameter is specified, which prevents Windows PowerShell from overwriting an existing file.
The –Append
parameter will add the new transcript to the end of an existing file. For example, take a look at the following:
PS C:\> Start-Transcript -Path C:\transcript\transcript01.txt –NoClobber
When you want to stop recording the transcript, you can either exit the console or type Stop-transcript
. The Stop-Transcript
cmdlet requires no additional parameters.
The Stop-transcript
cmdlet stops recording actions that was started by the start-transcript
cmdlet. Use the following syntax:
PS C:\> stop-transcript
- Getting started with Google Guava
- PostgreSQL 11從入門到精通(視頻教學版)
- HTML5+CSS3網站設計教程
- Instant RubyMotion App Development
- RabbitMQ Cookbook
- Modern C++ Programming Cookbook
- .NET Standard 2.0 Cookbook
- Python程序設計開發寶典
- 玩轉.NET Micro Framework移植:基于STM32F10x處理器
- Learning Bootstrap 4(Second Edition)
- 從零開始:C語言快速入門教程
- 計算機組裝與維護(第二版)
- Joomla!Search Engine Optimization
- JavaScript Unit Testing
- 數據結構與算法詳解