Active Directory Schema Creation Fails with 0X0000213E
You can't create an object under the schema container. This usually means you're running as the wrong user or the schema master is unreachable.
1. You're Not a Schema Admin
This is the one I see the most. Someone tries to extend the schema using a tool like ADSI Edit or a custom script, and they get hit with 0X0000213E. The error code translates directly to: you can't create objects under the schema container because you don't belong to the Schema Admins group. That's not a suggestion — it's a hard block.
Windows Server 2019 and 2022 enforce this strictly. Even Domain Admins don't have permission by default. You need to be a member of the Schema Admins group, and the group must be added to the ACL of the schema container. Microsoft didn't change this behavior in recent builds, so if you're running Server 2016 or newer, this is almost certainly your issue.
How to check
- Open Active Directory Users and Computers.
- Go to the Builtin container and find Schema Admins.
- Check its members. If you're not listed, that's your problem.
Fix it
- Log in as a user who's already a Schema Admin (usually the original domain admin).
- Add your current account to the Schema Admins group. You can do that with ADUC or PowerShell:
Add-ADGroupMember -Identity "Schema Admins" -Members "your-username"
- Log out and log back in. That's mandatory — group membership changes don't take effect until you get a new Kerberos ticket.
Had a client last month whose entire AD schema extension for Exchange 2019 failed because the admin was only a Domain Admin. Quick group membership fix, twenty minutes of lost time, and we were back on track.
2. Schema FSMO Role Owner Is Unreachable
Even if you're in Schema Admins, the schema update must contact the domain controller holding the Schema Master FSMO role. If that DC is offline, network-restricted, or has a DNS issue, you get 0X0000213E.
I've seen this happen after a DC demotion gone wrong — the schema master role gets orphaned or the old DC's DNS record still points to a dead server. The schema container check fails because the request can't reach the authoritative source.
Check who holds the role
Get-ADForest | Select-Object SchemaMaster
That returns the current schema master. If the output shows a different server than you expected, or if it returns nothing useful, you've got a problem.
Fix it
- Make sure the DC hosting the schema master is online and reachable from your machine. Ping it, check DNS resolution.
- If the schema master is dead or unreachable, seize the role. Use ntdsutil from an elevated prompt on a DC you trust:
ntdsutil
roles
connections
connect to server DC01
quit
seize schema master
quit
quit
Replace DC01 with the name of the DC you want to hold the role. After the seize, retry your schema operation. It should work.
I've used that exact sequence after a failed domain controller migration in a 2008 R2 forest. The schema master was on a server that wouldn't boot. Seizing the role to a healthy DC fixed the error instantly.
3. Permissions on the Schema Container Are Corrupted
Less common, but it happens. The Schema Admins group might not have the necessary create permission on the schema container. Usually this is caused by someone manually editing ACLs with ADSI Edit and making it worse.
Check permissions
- Open ADSI Edit, connect to the Schema naming context (CN=Schema,CN=Configuration,DC=yourdomain,DC=com).
- Right-click the schema container, go to Properties, Security tab.
- Verify that Schema Admins has "Create all child objects" checked.
Fix it
If Schema Admins is missing or has incorrect permissions, reset them using the dsacls command. Run this from an elevated prompt on a DC:
dsacls "CN=Schema,CN=Configuration,DC=yourdomain,DC=com" /G "Schema Admins:CCDC;"
That grants Create Child and Delete Child permissions. After applying, restart ADSI Edit and retry your operation.
I had a case where a junior admin denied Schema Admins write access thinking it was a security hardening step. All schema extension attempts failed with 0X0000213E. Took me longer to find the ACL than to fix it.
| Cause | Check | Fix |
|---|---|---|
| Not a Schema Admin | ADUC > Builtin > Schema Admins | Add yourself to the group, log out and back in |
| Schema master unreachable | Get-ADForest SchemaMaster | Seize schema master via ntdsutil |
| Schema container ACL broken | ADSI Edit > Security tab | Run dsacls to reset permissions |
Was this solution helpful?