CmdID / PowerShell / Cmdlets / Disable
Disable-PSTrace
Disables the Microsoft-Windows-PowerShell event provider logs. PowerShell reference
From the PowerShell reference 1 parameter
What it does
Disables the Microsoft-Windows-PowerShell event provider logs. This cmdlet disables the Operational and Analytic event logs of the Microsoft-Windows-PowerShell event provider. You must run this cmdlet from an elevated PowerShell session.
Disable-PSTrace [-AnalyticOnly] [<CommonParameters>]
Disable the Analytic event log for PowerShell
Disable-PSTrace -AnalyticOnlyIdentifyIts page in the reference: Disable-PSTrace.
Parameters
-AnalyticOnlyWhen this parameter is used, the cmdlet disables the Analytic event log of the Microsoft-Windows-PowerShell provider. The Operational event log is not changed.