Stop-Transcript
Published: February 29, 2012
Updated: August 15, 2012
Applies To: Windows PowerShell 2.0, Windows PowerShell 3.0
Stop-Transcript
Syntax
Stop-Transcript [ <CommonParameters>]
Detailed Description
The Stop-Transcript cmdlet stops a transcript that was started by using the Start-Transcript cmdlet. You can also stop a transcript by ending the session.
Parameters
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
-
None
You cannot pipe input to this cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
-
System.String
Stop-Transcript returns a string that contains a status message and the path to the output file.
Notes
-
If a transcript has not been started, the command fails.
Examples
-------------------------- EXAMPLE 1 --------------------------
This command stops any running transcripts.
PS C:\> stop-transcript
Related topics