Afterwards you can click the Ease of Access button to access Command Prompt, and reset local administrator password with cmd. To open an elevated Command Prompt without logging in, you can replace the Ease of Access application (Utilman.exe) with cmd.exe, and this can be done from a boot media.
Windows 10 users might have noticed the Ease of Access button on the bottom right corner of the logon screen. Method 2: Replace Ease of Access App with Cmd.exe
Access is denied." In case all your local administrator accounts are locked out, please use the method below. If you not log in as administrator, you will receive an error message like " System error 5 has occurred. Just hit Enter twice and it will remove your forgotten local administrator password. You'll get a password prompt to type a new password for the administrator account.