How to activate administrator account after accidentally disabling it on windows 10? [duplicate]

You may still logon to Windows using the local Administrator account, even if it is disabled.

You do this by starting Windows in Safe mode. Even when the Administrator account is disabled, you are not prevented from logging on as the Administrator in this mode.

When you have logged on successfully in Safe mode, re-enable the Administrator account, and then log on again.

For more details, see the Microsoft article
How to access the computer after you disable the administrator account.