Start-Transcript - PowerShell


 

Creates a record of all or part of a Windows PowerShell session in a text file. (Start-Transcript)

   

# NAME
Start-Transcript

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

# SYNTAX
Start-Transcript [[-Path] <string>] [-Append] [-Force] [-NoClobber] [-Confirm] [-WhatIf] [<CommonParameters>]

# 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.

# PARAMETERS
-Append [<SwitchParameter>]
Adds the new transcript to the end of an existing file. Use the Path parameter to specify the file.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Force [<SwitchParameter>]
Allows the cmdlet to append the transcript to an existing read-only file. When used on a read-only file, the cmdlet changes the file permission to read-write. Even using the Force parameter, the cmdlet cannot override security restrictions.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-NoClobber [<SwitchParameter>]
Will not overwrite (replace the contents) of an existing file. By default, if a transcript file exists in the specified path, Start-Transcript overwrites the file without warning.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Path <string>
Specifies a location for the transcript file. Enter a path to a .txt file. Wildcards are not permitted.

If you do not specify a path, Start-Transcript uses the path in the value of the $Transcript global variable. If you have not created this variable, Start-Transcript stores the transcripts in the $Home\My Documents directory as \PowerShell_transcript.<time-stamp>.txt files.

If any of the directories in the path do not exist, the command fails.

Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm [<SwitchParameter>]
Prompts you for confirmation before executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf [<SwitchParameter>]
Describes what would happen if you executed the command without actually executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

# INPUTS
None
You cannot pipe objects to this cmdlet.

# OUTPUTS
System.String
Start-Transcript returns a string that contains a confirmation message and the path to the output file.

# NOTES

To stop a transcript, use the Stop-Transcript cmdlet.

To record an entire session, add the Start-Transcript command to your profile. For more information, see about_Profiles.

# EXAMPLE 1

C:\PS>start-transcript

# Description
-----------
This command starts a transcript in the default file location.

# EXAMPLE 2

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

# Description
-----------
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.

RELATED LINKS
Online version: http://go.microsoft.com/fwlink/?LinkID=113408
Stop-Transcript

C:\Windows>powershell get-help Stop-Transcript -full

ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2014 Microsoft Corporation.

OS: Windows 10, 8.1, 8, 7, Vista / Windows Server 2016, 2012, 2008
»»»» ColorConsole








Windows-10





Windows-10

... facebook.de
... Windows-10 FAQ
... Windows-10 Info


Become a Sponsor
... Your button here?





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

HTTP: ... PS_Windows/en/Start-Transcript.htm
0.327
14990

Executing commands from the explorer address bars in Q-Dir!

 /

Open a new program instance or window via Windows Start (8.x, 10)!

 /

How big should be the Windows 7 disk partition?

 /

Find the Wallpapers directory on Windows-10, can I?

 /

How can i customize the Relationship on FaceBook.com?

 /

Can I open the installed applications (APPs) on my Samsung Galaxy?

 /

The desktop note is transparent I can barely see the font, why?

 /

Windows 7 Farbschema stellt sich bei bestimmten Programmen um, ist das zu beheben?

 /

Short how-to i use DirPrintOK!

 /

Die Desktop Symbole-Anordnung wird nicht mehr wiederhergestellt!

 /

Die Screenshot Funktion in Desktop-OK How-To verwenden?

 /

Status: Is downloaded - 100 percent and Windows 10 hangs?

 /