Press the Windows key + R on your keyboard to launch the “Run” dialog box.
Type in control userpasswords2 or netplwiz
Press Enter. The User Accounts window will display.
Uncheck the option “Users must enter a user name and password to use this computer”
You will then be prompted to enter the password and confirm it.
After doing so, you will no longer be prompted to enter your password upon login.
From now on, when your PC starts up, Windows will log on automatically.