Stop-Trace
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: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SessionName
The name of the Event Trace session to be stopped.
Type: | Object |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
You can't pipe objects to this cmdlet.
Outputs
None
This cmdlet returns no output.
Related Links
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for