5175 shaares
488 private links
488 private links
But what should you do to fix the problem when you have deleted an administrator account on Windows 10 by mistake? //
- Click on the Start button to open Start menu.
- Press the Shift key and hold it.
- Choose Restart from the Start menu.
- Wait for the rebooting until you enter the Windows Recovery Environment.
- Choose Troubleshoot and Advanced Options to see the window shown below.
- Select Command Prompt and repeat step 4 ~ 8.
- Type net user administrator /active: yes and hit Enter.
- Wait for it to complete.
- Type net localgroup administrators UserName /add (please replace UserName with your current account name) and hit Enter.
- Create a new user account with administrator rights.
- Type net user username * /add