Discover and Clear Admin Count Attribute with PowerShell
· ☕ 3 min read · ✍️ Brett Johnson
What is Admin Count? Before we discuss Admin Count, a little background is needed. AD contains an object called AdminSDHolder. Its purpose is to protect objects. Specifically, objects which are members of administrative groups.
AD objects have an attribute called “Admin Count”. The default value is for most objects. Changing the value to “1”, flags the account as protected by AdminSDHolder.
By adding a user to an administrative AD group. You change the value to “1”.