CmdID / PowerShell / Cmdlets / Enable
Enable-PSWSManCombinedTrace
Start a logging session with the WSMan and PowerShell providers enabled. PowerShell reference
From the PowerShell reference 1 parameter
What it does
Start a logging session with the WSMan and PowerShell providers enabled. This cmdlet starts a logging session with the following PowerShell providers enabled: - Microsoft-Windows-PowerShell - Microsoft-Windows-WinRM The session is named 'PSTrace'. This cmdlet uses the Start-Trace cmdlet. You must run this cmdlet from an elevated PowerShell session.
Enable-PSWSManCombinedTrace [-DoNotOverwriteExistingTrace] [<CommonParameters>]
Start a combined logging session
Enable-PSWSManCombinedTraceIdentifyIts page in the reference: Enable-PSWSManCombinedTrace.
Parameters
-DoNotOverwriteExistingTraceBy default, the events are written to $PSHOME\Traces\PSTrace.etl. When this parameter is used, the cmdlet creates a unique filename: $PSHOME\Traces\PSTrace_{guid}.etl