In Control Panel, open Users. For any users on the system, add a password. They will require whatever password you set in order to log on.
As noted, you can also set a BIOS - power on password, However, if and when you get rid of the machine, be sure you remove the BIOS password.