> 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-3.x/cortex-xdr-3.x-documentation/reference/microsoft-windows-security-auditing-setup/enable-security-auditing-event-ids/set-up-local-machine-security-auditing-without-gpo.md).

# Set up local machine security auditing without GPO

To enable collection of event logs on a local machine without GPO, use the following command in an administrator command prompt:

```programlisting
auditpol /set /subcategory:[subcategory] /success:enable /failure:enable
```

Replace \[subcategory] with the subcategories in the following table.

| **Event IDs**                                                                      | **Audit Policy**   | **Subcategory**                          | **Additional configuration needed**                                                                                                                                                                                                                                                       |
| ---------------------------------------------------------------------------------- | ------------------ | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 4776, 4822, 4823                                                                   | Account Logon      | Audit Credential Validation              |                                                                                                                                                                                                                                                                                           |
| 4768, 4771, 4824                                                                   | Account Logon      | Audit Kerberos Authentication Service    | DCs only                                                                                                                                                                                                                                                                                  |
| 4769, 4770, 4821                                                                   | Account Logon      | Audit Kerberos Service Ticket Operations | DCs only                                                                                                                                                                                                                                                                                  |
| 4741, 4742, 4743                                                                   | Account Management | Audit Computer Account Management        | DCs only                                                                                                                                                                                                                                                                                  |
| 4727, 4728, 4729, 4731, 4732, 4733, 4735, 4737, 4754, 4755, 4756, 4757, 4764, 4799 | Account Management | Audit Security Group Management          |                                                                                                                                                                                                                                                                                           |
| 4720, 4722, 4723, 4724, 4725, 4726, 4738, 4740, 4765, 4766, 4767, 4780, 4781       | Account Management | Audit User Account Management            |                                                                                                                                                                                                                                                                                           |
| 4662                                                                               | DS Access          | Audit Directory Service Access           | <p><a href="/pages/2rrbvYviWgefoZz5IkmV">Additional setup for Active Directory Certificate Services (ADCS) events</a></p><p>DCs only</p>                                                                                                                                                  |
| 4634, 4647                                                                         | Logon/Logoff       | Audit Logoff                             |                                                                                                                                                                                                                                                                                           |
| 4624, 4625, 4648                                                                   | Logon/Logoff       | Audit Logon                              |                                                                                                                                                                                                                                                                                           |
| 4649, 4778, 4800, 4801, 4802, 4803                                                 | Logon/Logoff       | Audit Other Logon/Logoff Events          |                                                                                                                                                                                                                                                                                           |
| 4672                                                                               | Logon/Logoff       | Audit Special Logon                      |                                                                                                                                                                                                                                                                                           |
| 4880, 4881, 4885, 4886, 4887, 4888, 4896, 4898, 4899, 4900                         | Object Access      | Audit Certification Services             | [Additional setup for Active Directory Certificate Services (ADCS) events](/cortex-xdr-3.x/cortex-xdr-3.x-documentation/reference/microsoft-windows-security-auditing-setup/enable-security-auditing-event-ids/additional-setup-for-active-directory-certificate-services-adcs-events.md) |
| 5140                                                                               | Object Access      | Audit File Share                         |                                                                                                                                                                                                                                                                                           |
| 4698, 4702                                                                         | Object Access      | Audit Other Object Access Events         |                                                                                                                                                                                                                                                                                           |
| 4713                                                                               | Policy Change      | Audit Authentication Policy Change       |                                                                                                                                                                                                                                                                                           |
| 4616                                                                               | System             | Audit Security State Change              |                                                                                                                                                                                                                                                                                           |
| 1102                                                                               | System             | Other System Events                      | Enabled by default                                                                                                                                                                                                                                                                        |


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xdr-3.x/cortex-xdr-3.x-documentation/reference/microsoft-windows-security-auditing-setup/enable-security-auditing-event-ids/set-up-local-machine-security-auditing-without-gpo.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
