How to Set a Password for a Windows User Account
Add a password to a Windows user account that currently has none, using either Settings or Computer Management (net user).
Step-by-step
- Method 1 - Settings: Press Win+I, go to Accounts > Sign-in options, and under Password click 'Add'
- Enter the new password twice and add a password hint, then click Next and Finish
- Method 2 - Computer Management: Press Win+R, type compmgmt.msc and press Enter
- Go to Local Users and Groups > Users, right-click the account and choose 'Set Password'
- Click Proceed on the warning, type the new password twice, and click OK
- Method 3 - Command line (Admin): run net user <username> <password> to set the password directly
Reference: support.microsoft.com