AD-SCH-01 - Schema modification year count should be retrievable
Overviewโ
Understanding when your Active Directory schema has been modified provides important visibility into the evolution of your directory infrastructure. Schema modifications typically occur during:
- Domain upgrades: When upgrading to newer Windows Server versions
- Application installations: Products like Exchange, Skype for Business, and third-party applications extend the schema
- Custom developments: Organizations may add custom attributes or classes
Tracking schema modification years helps:
- Audit trail: Understand when major changes occurred
- Compliance: Document directory evolution for compliance purposes
- Troubleshooting: Correlate issues with schema change timeframes
- Planning: Identify when the directory was last updated
Security Recommendationโ
While schema modifications are normal and necessary, they should be:
- Documented: All schema changes should be recorded with business justification
- Planned: Schema changes should go through change control processes
- Tested: Schema extensions should be tested in a lab environment first
- Authorized: Only privileged administrators should have schema admin rights
How the Test Worksโ
This test retrieves all schema objects and analyzes their creation dates to identify:
- How many different years have had schema modifications
- The total number of schema objects
- The first and most recent schema changes
Related Testsโ
Test-MtAdSchemaModificationYearDetails- Provides detailed breakdown by yearTest-MtAdSchemaVersionEntryCount- Shows the current schema versionTest-MtAdSchemaVersionDetails- Provides comprehensive schema information
Test Metadataโ
| Field | Value |
|---|---|
| Test ID | AD-SCH-01 |
| Severity | Info |
| Suite | Active Directory |
| Category | AD.Schema |
| PowerShell test | Test-MtAdSchemaModificationYearCount |
| Tags | AD, AD-SCH-01, AD.Schema |
Sourceโ
- Pester test:
tests/ad/schema/Test-MtAdSchemaModificationYearCount.Tests.ps1 - PowerShell source:
powershell/public/ad/schema/Test-MtAdSchemaModificationYearCount.ps1

