Start a transcript of a command shell session, record the session to a text file.
Syntax Start-Transcript [-Path] string] [-Force] [-noClobber] [-Append] [-WhatIf] [-Confirm] [CommonParameters] Key -Path string The path to the transcript file. -Force Override restrictions that prevent the command from succeeding, apart from security settings. e.g. override a files read-only attribute. -NoClobber Do not overwrite an existing file. -Append Add the new transcript to the end of an existing file. -WhatIf Describe what would happen if you executed the command without actually executing the command. -Confirm Prompt for confirmation before executing the command. CommonParameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer -OutVariable.
Start-Transcript creates a record of a PowerShell session in a text file. The transcript file includes all commands typed and all the console output.
If no path is specified, Start-Transcript will use the path in the value of the $Transcript global variable. If this variable has not been set, Start-Transcript will store the transcripts in $Home\My Documents\PowerShell_transcript.<time-stamp>.txt
Start a transcript:
PS C:\> start-transcript -path c:\docs\MyTranscript.txt
“Scholars who contemplate on their thoughts and translate them into actions are the ones who are really great and noble” ~ Rig Veda
Stop-Transcript - Stop the transcription process
Equivalent bash command: Script - Start a transcript of a shell session
© Copyright SS64.com 1999-2013
Some rights reserved