> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xdr-5.x/reference-and-developer-docs/microsoft-windows-security-auditing-setup/enable-additional-event-logs-using-event-viewer.md).

# Enable additional event logs using Event Viewer

Enable additional Windows event logs using Event Viewer.

For the following event IDs, the auditing setup is configured using the **Windows Event Viewer**. Access the **Event Viewer** through the search box in the **Start** menu.

![image34.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-e537cc5cbefd083017501bb57de7116a45462ec2%2F457d56a3fedf3cf231afbe085835c14ad3b4b876efca638da006c1b237e03b95.png?alt=media)

<details>

<summary>Event IDs 1511, 1518</summary>

In **Event Viewer** → **Expand Applications and Services Logs** → **Microsoft** → **Windows** → **User Profile Service**, right click **Operational** and select **Enable Log**.

![image22.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-72cc61c4222cd14a63550957bda62f41eb06949d%2F7ae4b937355cedd644cc8a1656938b76df738498f68aaa118051ebf34cb9793d.png?alt=media)

</details>

<details>

<summary>Event IDs 11, 70, 90</summary>

In **Event Viewer** → **Expand Applications and Services Logs** → **Microsoft** → **Windows** → **CAPI2**, right click **Operational** and select **Enable Log**.

![image36.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-7a5b25356b847c11254d5303b5e4b4fca1ab14d3%2F499293f040a47e1fc4a31a6f4b376c97b7884899fbe700489a8a52626f908cf4.png?alt=media)

</details>

<details>

<summary>Event ID 3008</summary>

In **Event Viewer** → **Expand Applications and Services Logs** → **Microsoft** → **Windows** → **DNS Client Events**, right click **Operational** and select **Enable Log**.

![image33.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-a0b0cfef57eec99d032c42adf726b24e2583ed04%2Ff654dbd3fd33e9ac65ae043e57d0f16108006ea97c6339f57e9a3d20065010dd.png?alt=media)

</details>

<details>

<summary>Event ID 2004</summary>

In **Event Viewer** → **Expand Applications and Services Logs** → **Microsoft** → **Windows** → **DriverFrameworks-UserMode**, right click **Operational** and select **Enable Log**.

![image28.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-28a40bfaf011200a9a21cdbbc368afcdc3a21880%2F28756291f1e520f64dabe8119636dfaa4d5a2ed65bfcdff5d276fd434e1c4ed7.png?alt=media)

</details>

<details>

<summary>Event IDs 4103, 4104, 4105, 4106</summary>

In **Event Viewer** → **Expand Applications and Services Logs** → **Microsoft** → **Windows** → **PowerShell**, right click **Operational** and select **Enable Log**.

![image31.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-e537cc5cbefd083017501bb57de7116a45462ec2%2F457d56a3fedf3cf231afbe085835c14ad3b4b876efca638da006c1b237e03b95.png?alt=media)

</details>

<details>

<summary>Event IDs 1006, 1009, 1116-1119</summary>

In **Event Viewer** → **Expand Applications and Services Logs** → **Microsoft** → **Windows** → **Windows Defender**, right click **Operational** and select **Enable Log**.

![image35.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-21a78f4f23b4b88b8ed589f4a842c116c460e19c%2F3486b39c13065705155e2a75a7e67ac7e36b8792cf5ed3ce36564a5a451f2c92.png?alt=media)

</details>

<details>

<summary>Event ID 1024</summary>

In **Event viewer** → **Application and Services Logs** → **Microsoft** → **Windows** → **TerminalServices-ClientActiveXCore** → **Microsoft-Windows-TerminalServices-RDPClient**, right click **Operational** and select **Enable Log**.

![image30.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-9981154e87b7f90445c8a454bff72693093598f8%2Fa2b5d96f7179588edf35f14a56feeb88cfcf6ab5bea7ff4f69bcd31326b4a699.png?alt=media)

</details>

<details>

<summary>Event IDs 2005, 2006, 2009, 2033</summary>

In **Event Viewer** → **Expand Applications and Services Logs** → **Microsoft** → **Windows** → **Windows Firewall With Advanced Security** → **Firewall**, right click **Operational** and select **Enable Log**.

![image17.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-eaa0a1074215dfa0b29ec3f73ee70ccd4a38b3ad%2F76d954b15f75e4349a2d708ccb3b0813f3cc02074364d40d97663264b1fe2604.png?alt=media)

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xdr-5.x/reference-and-developer-docs/microsoft-windows-security-auditing-setup/enable-additional-event-logs-using-event-viewer.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
