net user Then activate the desired account:
net user YourUsername /active:yes Type exit to close Command Prompt, then click Continue to boot to Windows. You will now see the built-in Administrator account on the login screen. Log into it. Step 5: Change Your Original Account to Admin (Optional) Once logged in as the built-in administrator, open Settings > Accounts > Other users , find your original account, and change its type to Administrator. Step 6: Disable the Built-in Administrator (Security Best Practice) After fixing your account, return to Command Prompt (as admin) and run: how to make yourself an administrator windows 11
net user administrator /active:yes If you have a Microsoft account, you may need to use the local account name instead. To see a list of accounts, type: net user Then activate the desired account: net