Skip to content

Latest commit

 

History

History
110 lines (72 loc) · 2.13 KB

File metadata and controls

110 lines (72 loc) · 2.13 KB
external help file PSDiagnostics-help.xml
Locale en-US
Module Name PSDiagnostics
ms.date 12/12/2022
online version https://learn.microsoft.com/powershell/module/psdiagnostics/stop-trace?view=powershell-7.6&WT.mc_id=ps-gethelp
schema 2.0.0
title Stop-Trace

Stop-Trace

SYNOPSIS

Stop an Event Trace logging session.

SYNTAX

Stop-Trace [-SessionName] <Object> [-ETS] [<CommonParameters>]

DESCRIPTION

This cmdlet is only available on the Windows platform.

This cmdlet stops a Windows Event Trace logging session.

This cmdlet is used by the following cmdlets:

  • Disable-PSWSManCombinedTrace
  • Disable-WSManTrace

You must run this cmdlet from an elevated PowerShell session.

EXAMPLES

Example 1: Stop a WSMan Trace logging session

Stop-Trace -SessionName 'wsmlog'

PARAMETERS

-ETS

Send commands to Event Trace Sessions directly without saving or scheduling.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

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

-SessionName

The name of the Event Trace session to be stopped.

Type: System.Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
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

None

This cmdlet returns no output.

NOTES

RELATED LINKS

Event Tracing

Start-Trace

Disable-PSWSManCombinedTrace

Disable-WSManTrace

Enable-PSWSManCombinedTrace

Enable-WSManTrace