• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Mister PKI

SSL Certificates * SSL Tools * Certificate Decoder

  • PKI Training
  • OpenSSL
  • Keytool
  • PKI Tools
    • Apereo CAS
    • SAML
    • OpenID Connect
  • Get expert help

admincount Active Directory

January 2, 2025 by Mister PKI Leave a Comment

The article will document and describe the admincount attribute in Active Directory. The primary purpose being that you may encounter an account in your Active Directory that has elevated privileges. The first step in determining if this is true is to look to see if admincount = 1. If so, there is a permission on the account determining the admincount value to be equal to 1. Or, at some point in the past the account had an elevated privilege and the admincount was never reset.

If the admincount attribute is set to 0 or does not exist, then the account does not have elevated privileges.

Privileged Group Membership

One common cause for the admincount attribute being set to 1 is if the account in a member of a privileged group. A list of privileged groups can be found here: https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/security-best-practices/appendix-b–privileged-accounts-and-groups-in-active-directory

After removing the account from the privileged group, reset the admin count of the user. For instructions on how to remove users from groups see this article.

Powershell – reset admincount

To reset or clear the admin count, run this PowerShell command.

Set-ADUser -Identity <samAccountName> -Remove @{adminCount=1}
Get-ADUser -Identity <samAccountName> -Properties adminCount | Select adminCount

Every couple of hours a behind the scenes process will run and reset adminCount to 1 if privileged access is found on the account. If after some time you see the attribute set back to 1 you know you have more investigation to do. Double check the account’s group membership for additional groups that have elevated access.

Disable Inheritance

If admincount continues to be set to 1 make sure the account has inheritance disabled. It may have had elevated privileges at some point in the past that need to be reset with inheritance.

Conclusion – admincount Active Directory

This article has demonstrated how to maintain the admincount attribute in Active Directory. Let us know in the comments if you have any questions.

Uncategorized

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Popular Posts

PKCS12

openssl s_client

Keytool

Keytool list

ECDSA vs RSA

OpenSSL

PKCS7

Certificate Decoder

PKI for DevOps Engineers – Free Training Series

PKI for DevOps Training Hub

Lesson 1 – How TLS and PKI Work

Lesson 2 – Understanding X.509 Certificates

Lesson 3 – Certificate Chains Explained

Lesson 4 – Debug TLS with OpenSSL

Lesson 5 – Verify Certificate Chains

Lesson 6 – Creating CSRs with OpenSSL

Lesson 7 – Working with PKCS12 Certificates

Lesson 8 – Java Keystores and keytool

Lesson 9 – Certificate Expiration Monitoring

Lesson 10 – Automating Certificate Renewal

Lesson 11 – Common TLS Errors

Lesson 12 – PKI Architecture for DevOps

Recent Posts

  • Apache mod_auth_cas: Protect Web Applications with Apereo CAS and Docker
  • Apache mod_auth_mellon: Configure SAML SSO & Docker
  • Configure OpenID Connect (OIDC) in Apereo CAS 7.3 and 8
  • Certificate Ownership Is an Operating Model Problem, Not a Tooling Problem
  • OpenSSL dgst: Create Checksums and Verify Digital Signatures

Footer

  • Twitter
  • YouTube
Mister PKI

Practical security engineering for the systems that establish trust.

Learn OpenSSL Keytool Free training
Work together PKI consulting CAS consulting Sponsored contributions
Site About Support Mister PKI Cookie policy Search
© 2026 Mister PKI Secure systems. Clear guidance.