PowerShell Logo Small

Start-Transcript



This is the built-in help made by Microsoft for the command 'Start-Transcript', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Creates a record of all or part of a Windows PowerShell session in a text file.

SYNTAX


Start-Transcript [[-Path] <String>] [-Append] [-Force] [-IncludeInvocationHeader] [-NoClobber] [-OutputDirectory [<String>]] [-Confirm] [-WhatIf] [<CommonParameters>]
Start-Transcript [[-LiteralPath] <String>] [-Append] [-Force] [-IncludeInvocationHeader] [-NoClobber] [-OutputDirectory [<String>]] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Start-Transcript cmdlet creates a record of all or part of a Windows PowerShell session in a text file. The transcript includes all command that the user types and all
output that appears on the console.


Starting in Windows PowerShell 5.0, Start-Transcript includes the host name in the generated file name of all transcripts. This is especially useful when your enterprise’s
logging is centralized. Files that are created by Start-Transcript include random characters in names to prevent overwriting or duplication when two or more transcripts are
started nearly simultaneously, and to help prevent unauthorized discovery of transcripts that are stored in a centralized file share. Additionally in Windows PowerShell 5.0,
the Start-Transcript cmdlet works in Windows PowerShell ISE.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=289793
Stop-Transcript

REMARKS

<

Examples


-------------------------- EXAMPLE 1 --------------------------

PS C:\>start-transcript



This command starts a transcript in the default file location.








-------------------------- EXAMPLE 2 --------------------------

PS C:\>start-transcript -path c:\transcripts\transcript0.txt -noclobber



This command starts a transcript in the Transcript0.txt file in C:\transcripts. The NoClobber parameter prevents any existing files from being overwritten. If the
Transcript0.txt file already exists, the command fails.