Every time my Wi-Fi stick smears or there are malfunctions at Unitymedia, I can no longer log in because I then have no Internet. (Because the PC always wants to log in with my Xbox / Microsoft account). So annoying. How does it work?
You have to set up an account on the PC, a so-called "offline" account.
With this you can also set when a password is entered (restart, after… Minutes pause, after energy saving mode, etc.).
https://www.pc-magazin.de/ratgeber/windows-10-offline-konto-hinzufuegen-wechseln-tipps-3199970.html you can read how it is set up.