Skip to content

Latest commit

 

History

History
100 lines (67 loc) · 1.99 KB

File metadata and controls

100 lines (67 loc) · 1.99 KB
external help file Locale Module Name ms.date online version schema title
Microsoft.PowerShell.ConsoleHost.dll-Help.xml
en-US
Microsoft.PowerShell.Host
01/04/2024
2.0.0
Stop-Transcript

Stop-Transcript

SYNOPSIS

Stops a transcript.

SYNTAX

Stop-Transcript [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Stop-Transcript cmdlet stops a transcript that was started by the Start-Transcript cmdlet. Alternatively, you can end a session to stop a transcript.

EXAMPLES

Example 1: Stop all transcripts

Stop-Transcript

This command stops all transcripts.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

This parameter was added in PowerShell 7.4.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet isn't run.

This parameter was added in PowerShell 7.4.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

You can't pipe objects to this cmdlet.

OUTPUTS

System.String

This cmdlet returns a string that contains a status message and the path to the output file.

NOTES

If a transcript hasn't been started, the command fails.

RELATED LINKS

Start-Transcript