| 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 an Event Trace logging session.
Stop-Trace [-SessionName] <Object> [-ETS] [<CommonParameters>]
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-PSWSManCombinedTraceDisable-WSManTrace
You must run this cmdlet from an elevated PowerShell session.
Stop-Trace -SessionName 'wsmlog'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: FalseThe 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: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
You can't pipe objects to this cmdlet.
This cmdlet returns no output.