How to recover when domain administrator is disabled in an Active Directory domain system
Restart and login to the system in safe mode with networking option. Use your same domain administrator login to logon (you must be able to login with the disabled user when on safe mode). And issue the below command in command prompt.
net user administrator /active:yes
You must be able to login back with your domain admin credential.
Updated : 26 Mar 24