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, -OutVariable.
Examples
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
Related:
Stop-Transcript - Stop the transcription process
Equivalent bash command: Script - Start a transcript of a shell session