| 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/enable-wsmantrace?view=powershell-7.6&WT.mc_id=ps-gethelp |
| schema | 2.0.0 |
| title | Enable-WSManTrace |
Start a logging session with the WSMan providers enabled.
Enable-WSManTrace [<CommonParameters>]
This cmdlet is only available on the Windows platform.
This cmdlet starts a logging session with the WSMan providers enabled. The following event providers are enabled:
Event ForwardingIpmiDrvIPMIPrvWinRMWinrsCmdWinrsExeWinrsMgrWSManProvHost
The session is named wsmlog.
This cmdlet uses the Start-Trace cmdlet.
You must run this cmdlet from an elevated PowerShell session.
Enable-WSManTraceThis 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.