Guide

Empty Schema Admins and Enterprise Admins

Schema Admins and Enterprise Admins can change the whole forest. Nobody needs those rights day to day, so the groups should be empty until a job needs them.

5 minutesRun as a named domain admin on CON-DC-01
What improves

Nobody holds forest-wide rights day to day.

Why it matters

Schema Admins and Enterprise Admins can change the whole forest, so standing membership is an unnecessary risk.

How you do it

Remove Administrator from the groups and add an account back only for the job that needs it.

Before this guide

Finish Create a named domain admin account and sign in with that account. Running these commands as the new account proves it works.

See who is in them

CON-DC-01
foreach ($g in 'Schema Admins','Enterprise Admins','Group Policy Creator Owners') {
    "{0,-28} {1}" -f $g, ((Get-ADGroupMember -Identity $g | ForEach-Object { $_.SamAccountName }) -join ', ')
}

On a new domain, the built-in Administrator is in all three.

Take Administrator out

CON-DC-01
Remove-ADGroupMember -Identity 'Schema Admins'               -Members 'Administrator' -Confirm:$false
Remove-ADGroupMember -Identity 'Enterprise Admins'           -Members 'Administrator' -Confirm:$false
Remove-ADGroupMember -Identity 'Group Policy Creator Owners' -Members 'Administrator' -Confirm:$false

Administrator stays in Domain Admins, so it still runs the domain.

Check

Run the command from step 1 again. All three groups should be empty.

When a job needs them

A schema update or adding a new domain needs these rights for an hour. Add your account, sign out and in again, do the job, then remove it.

CON-DC-01
Add-ADGroupMember    -Identity 'Schema Admins' -Members 'j.smith.da'
# sign out, sign in, do the work, then:
Remove-ADGroupMember -Identity 'Schema Admins' -Members 'j.smith.da' -Confirm:$false

Done when

Check

Schema Admins, Enterprise Admins and Group Policy Creator Owners have no members, and you can still sign in as a domain admin.

Your progress is kept in this browser only.