# Admin Count

> **adminCount** Indicates that a given object has had its ACLs changed to a more secure value by the system because it was a member of one of the administrative groups (directly or transitively).

This will get you all user objects with the `adminCount` attribute set to `1`:

```bash
nxc ldap 192.168.255.131 -u adm -p pass --admin-count
```

If you want all objects in ldap you can query them manually:

```bash
nxc ldap 192.168.255.131 -u adm -p pass --query "(adminCount=1)" "sAMAccountName"
```

{% embed url="<https://troopers.de/downloads/troopers19/TROOPERS19_AD_Fun_With_LDAP.pdf>" %}


---

# Agent Instructions: 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:

```
GET https://www.netexec.wiki/ldap-protocol/admin-count.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
