GPO state total count should be investigated
AD-GPOS-01InfoActive DirectoryGroup Policy
Part of Active Directory · Active Directory · Group Policy · All checks
Invoke-Maester -TestId AD-GPOS-01Overview
Section titled “Overview”Test-MtAdGpoStateTotalCount
Section titled “Test-MtAdGpoStateTotalCount”Counts the total number of Group Policy Objects (GPOs) returned by Get-MtADGpoState.
Why This Test Matters
Section titled “Why This Test Matters”- Operational control: provides a quick overview of the total GPOs present in the AD state to gauge scope.
Control Type
Section titled “Control Type”Operational
Security Recommendation
Section titled “Security Recommendation”- Use as a baseline metric; no remediation required unless counts look unexpectedly abnormal.
How the Test Works
Section titled “How the Test Works”- Calls Get-MtADGpoState, counts non-null GPOs in the GPOs collection, and reports a Markdown table with a single Total GPOs value.
Related Tests
Section titled “Related Tests”Test-MtAdGpoStateTotalCountis the primary reference.
Related links
Section titled “Related links”- Microsoft Learn - Group Policy overview
- ANSSI checkpoint: https://www.anssi.gouv.fr/
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | AD-GPOS-01 |
| Severity | Info |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Group Policy |
| Area | Infrastructure hardening |
| Resource type | GroupPolicy |
| MITRE ATT&CK | None |
| PowerShell test | Test-MtAdGpoStateTotalCount |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:groupPolicyContainer.gPCFileSysPath:ReadProperty, ActiveDirectory:File:SYSVOL:Read |
Source
Section titled “Source”- Test:
tests/ad/gpo-state/Test.AD-GPOS-01.ps1 - Documentation:
tests/ad/gpo-state/Test.AD-GPOS-01.md
About this check
- Severity
- Info
- Product
- Active Directory
- Feature
- Group Policy
- Area
- Infrastructure hardening
- Suite
- Active Directory