User accounts in Windows are protected with code access and if you forget it the only way out is to ask your administrator to reset it.
However, if you forget your admin password, resetting the password is not easy unless you have another admin account (or a recovery USB). This may be more the case in corporate environments where there is more than one Admin, and less so on some home computer.
Below we will see one of the ways to reset the Windows 10/11 password with a USB stick.
Windows offers a feature recoverypassword with a USB. It's the simplest way to find a forgotten password, but it only works with local accounts. If you have an account linked to a Microsoft account, you will need to reset your password from the Microsoft site.
Make sure you have a USB drive that you will not use for anything else and connect it to your computer.
Log in to your account and enter in the menu search or in the settings search: Create a password reset disk or in Greek create a password reset disk.
In the wizard that will open, select Next.
Select USB again Next.
Now, enter your current password and click Next.
When the wizard is finished, select Next and Finish.
When you're done, remove the USB from the computer and hold it somewhere so you don't lose it. Be aware that you do not need to re-create a recovery disc, even if you change your password.
To reset, you need to click Reset Password on the login screen. The Password Reset Wizard will start immediately. Insert the USB and click the Next button. Select USB again Next.
Once you enter your password a screen will open where you can create a new password and save it.
That's it.
Caution:
Windows 10 before version 1803
For versions of Windows 10 prior to version 1803, local account passwords cannot be reset because there are no questions better safetys. You can reset your device to choose a new password, however, this option will permanently erase your data, programs, and settings you.
If you have backed up your files, you will be able to restore deleted files.