Search code examples
pythonwindowsauthenticationautomationwake-on-lan

Auto login after Wake On Lan


I have got the Wake On Lan feature working. But after I start the computers they get stuck at the windows login screen obviously as the computers have passwords.

Is there any way to auto login after Wake On Lan or somehow automate the login process without removing the password. I found threads discussing a possibility that you could run a script as a service or something, but couldn't find a working solution.


Solution

  • I found a way to do this with Python and Windows Task Scheduler. With Task scheduler you can run tasks based on events like startup. I created a Python script that changes the password to a blank one and restarts the computer, this way it doesn't require the password for login. In Task Scheduler you have to check the run with highest privileges and run whether the user is logged in or not. Then I created another script that after log in event changes the password back to what it was.

    In my opinion this is some kind of security flaw but more experienced people can give their opinion about that.