Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Computer non-standard primary group count should be retrievable

AD-COMP-04InfoActive DirectoryComputers

Part of Active Directory · Active Directory · Computers · All checks

Run this check
Invoke-Maester -TestId AD-COMP-04

Computer accounts should use standard primary group IDs. Non-standard primary groups may indicate:

  • Misconfiguration: Computers accidentally assigned to incorrect groups
  • Custom security configurations: Potential deviations from security baselines
  • Legacy issues: Remnants of previous domain configurations or migrations
  • Privilege escalation risks: Computers in inappropriate groups may have excessive permissions

The standard primary groups for computers are:

  • 515 - Domain Computers (standard workstations and member servers)
  • 516 - Domain Controllers (DC computer accounts)
  • 521 - Read-only Domain Controllers (RODC computer accounts)

Detective

  • Review computers with non-standard primary groups to understand why they deviate
  • Ensure custom primary groups are intentional and properly documented
  • Verify that computers are not accidentally placed in groups that grant excessive privileges
  • Consider standardizing on the default groups unless there’s a specific security requirement

This test examines the primaryGroupId attribute of all enabled computer accounts and identifies those where the value is not 515, 516, or 521.

  • Test-MtAdComputerSidHistoryCount - Identifies computers with migration artifacts
  • Test-MtAdComputerOUCount - Shows the distribution of computers across OUs
Every attribute of this check
FieldValue
Test IDAD-COMP-04
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureComputers
AreaIdentity lifecycle and hygiene
Resource typeComputer
MITRE ATT&CKNone
PowerShell testTest-MtAdComputerNonStandardGroup
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:computer:ReadProperty