Start a transcript of a command shell session, record the session to a text file.

      Start-Transcript [-Path] string] [-Force] [-noClobber]
              [-Append] [-WhatIf] [-Confirm] [CommonParameters]
   -Path string
       The path to the transcript file. 

       Override restrictions that prevent the command from succeeding, apart
       from security settings. e.g. override a files read-only attribute.

       Do not overwrite an existing file.
       Add the new transcript to the end of an existing file.
       Describe what would happen if you executed the command without
       actually executing the command.

       Prompt for confirmation before executing the command.

       -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 1999-2015
Some rights reserved