| Previous | Next |
| ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC | ERROR_DS_MODIFYDN_WRONG_GRANDPARENT |
ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG
A system flag has been set on the object and does not allow the object to be moved or renamed.
ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG is Win32 error 8581 (0x00002185) in Active Directory Domain Services.
Likely impact: Forcing the move can break directory topology, well-known object references, or product assumptions.
Typical causes
- the object is protected by a system-only flag.
- the caller tries to move an infrastructure object.
- a restored object has unexpected systemFlags.
- automation treats every directory object as freely movable.
Troubleshooting steps
- Verify that the target object flags permit the requested rename or move.
- Collect object DN, objectGUID, and systemFlags and requested new RDN and parent DN.
Useful evidence
- Collect LDAP extended diagnostic.
- Collect whether the object is a well-known or system-owned object.
Recovery and retry
Leave the protected object in place or use the supported management operation that owns its lifecycle; do not clear system flags merely to force ModifyDN.
Related errors
ERROR_DS_MODIFYDN_WRONG_GRANDPARENT permits some moves but restricts the destination; this code rejects the operation because of the object flag
Example
A cleanup script attempts to relocate a system container. Checking systemFlags shows that direct ModifyDN is prohibited, so the script excludes that object instead of changing protection metadata.
References
Looking for a different code? Search another status or error code.