Obsolete now, I know, but here you go...

In Windows 7 (at least) but not Windows 10 or 11, run NETPLWIZ from a command prompt; check (or uncheck, then recheck) the box that says something like "require users to enter passwords."

Make sure your own username is highlighted before you check/uncheck that box.