Find Admin Count Accounts
find_admin_count_accountsFind Active Directory accounts with adminCount=1, including stale protected-admin markers, to audit privileged-group remnants. Optionally scope the search to a specific OU.
Instructions
Find users with adminCount=1 (current or stale protected-admin marker).
AD sets adminCount=1 via AdminSDHolder on members of protected groups
(Domain Admins, Enterprise Admins, ...) and does not automatically clear
it once the account is later removed from every such group. Accounts
that still carry adminCount=1 but are no longer privileged keep a
non-inherited, hardened ACL and are a common audit finding. Pass base
(a DN) to scope to an OU.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | ||
| limit | No | ||
| domain | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |