> 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-security-auditing-event-ids/enable-auditing-access-to-ad-domain-objects-4662.md).

# Enable auditing access to AD domain objects - 4662

Enable auditing for Active Directory domain object access event 4662.

1. Log in to a Domain Controller as a domain admin.
2. In the **Start** menu, under **Administrative Tools**, open **Active Directory Users and Computers**.
3. In the left pane, locate the domain you want to audit. This will typically be the name of your network.
4. To see more details, in the **View** menu, select **Advanced Features**.

   ![image5.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-3b7da58b160f861f2fa91d5a9211499677fbefb9%2Fe9c834431ca13c9932ada260624602ad9e93688a692d544828ade5fe4b03ab6c.png?alt=media)
5. To view detailed information about your domain, right-click its name and select **Properties**.

   ![image2.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-ba2f783fdb9637d4c6911d855550db8bb3ecebcd%2F8b9c0465f7fced758daf5dc61811577d37453b8cc61221dac4d004cf4c479afc.png?alt=media)
6. Click the **Security** tab, usually located near the top of the **Properties** window.
7. Click **Advanced** which is located within the Security tab or near the bottom of the window.

   ![image4.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-3838b55dbfb030c18991114485acaf2237a68b87%2Fb143c3c4b2582aa3c62279bfbe4fd4dfee379125433f4d0c6ab5ea506bc56516.png?alt=media)
8. In the **Advanced Security Settings** window that opens, select the **Auditing** tab and click **Add**.

   ![image1.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-4b67ce4826687ad331a6c53a8ef7f67768d54a63%2F56a9fabe5157856d233b92fb74303bf2db62eb2ca66d64be9b83b3fcb29434fc.png?alt=media)
9. Click **Select a principal**.

   ![image3.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-caf2ee74bedab427fc208d57ea61dcf705ba942a%2F6d9cbd62f04931221077cfc8f71e1f7b68d4b8b274b29f775fae31f39646d0e9.png?alt=media)
10. In the window that opens, under **Enter the object name to select**, type **Everyone**, click **Check Names**, and then **OK**.

    ![image34.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-be09f65bbf1bb809538b64aaf2055dd0de4c86d8%2F3987669e5badd47fb1747d38f368afa229e3860da1121e656bfd25d40a3ae912.png?alt=media)
11. In the **Auditing Entry** window, do the following:
    * **Type:** To track only successful attempts, select **Success**.
    * **Applies to:** To monitor actions by users within this group and any subgroups, select **Descendant User objects**.

      ![image16.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-ddc4240709e04b724dfcc460606415d1600bd950%2Fa70f6e11eec48ece3d9d8c7971c1cf890b397a1dbf5df6be8b1cc9e910c80513.png?alt=media)
    * **Permissions:** To remove any existing permissions from this audit entry, click **Clear all**.

      ![image23.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-370b33eb26f0a2ff2952db1bf396b5b4a0c080c6%2F75d0b62d363192ab0f6856db9fd9e73c40cba23defca568a2a99793061fb92d4.png?alt=media)
    * Scroll up to **Permissions** to see view the list of permissions. Click the checkbox next to **Full Control** which automatically selects all the individual permissions below it.
    * Uncheck the boxes next to the following:

      * **List contents**
      * **Read all properties**
      * **Read permissions**

      ![image35.png](https://2127116976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcyIgISZgANJYkmLlnwdK%2Fuploads%2Fgit-blob-69dc2aeafef7fb5f42cb59058467a828589e7350%2F26479eddca55e9def6e3632551e4070c72cb0d026bf1290c13b4e8b89c6824f0.png?alt=media)
    * Click **OK** to save the changes.
12. Repeat step 11, with the following values in **Applies to**:
    * **Descendant Group Objects**
    * **Descendant Computer Objects**
    * **Descendant msDS-GroupManagedServiceAccount Objects**
    * **Descendant msDS-ManagedServiceAccount Objects**
    * **Descendant msDS-DelegatedManagedServiceAccount Objects**

      <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><p>The <strong>Descendant msDS-DelegatedManagedServiceAccount Objects</strong> configuration is relevant only for Windows Server 2025.</p></div>


---

# 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-security-auditing-event-ids/enable-auditing-access-to-ad-domain-objects-4662.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.
