Stops a transcript.
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.
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
Inputs and Outputs
The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet returns.
You cannot pipe input to this cmdlet.
Stop-Transcript returns a string that contains a status message and the path to the output file.
If a transcript has not been started, the command fails.
C:\PS>stop-transcript This command stops any running transcripts.