Log in to Windows with scheduler and batch command
I want to make Window 10 computer to login on certain time by running scheduled batch file to do it. But I have not found any Windows command who log you in.
* batfileWindows OS
Last Comment
Maggi Soffa
8/22/2022 - Mon
John
Below is a method using Task Scheduler to do this.
what's the schedule in detail? is it just a single, specific time every day? or multiple instances in a day?
Maggi Soffa
ASKER
On certain scheduled time I want my Windows 10 computer to logon automatically and open the desktop without any interaction from human.
I have no problem making schedule to log off the computer.
some computers support scheduled power-on in their BIOS settings. once you have enabled automatic Windows logon, then the scheduled power-on setting in BIOS actually can make automatic logon.
John
Did you try Task Scheduler (made for this)
bbao
> Did you try Task Scheduler (made for this)
i guess Task Scheduler only works after Windows is loaded and running. :) therefore it can't be use for powering up the computer.
I think it can run in a logged off state. I will check again .
John
Maggi - Is the computer running and logged off? Or Shut down? If the former, Task Scheduler supports running in a logged off state.
If shut down, you need Wake on LAN or like variable in BIOS as mentioned earlier.
Maggi Soffa
ASKER
It is running and logged off and I don't know what command to run with the scheduler to log the computer on. I use schedule to run "shutdown /l" to log it off.
https://www.winhelponline.com/blog/how-to-automatically-login-to-windows-and-then-lock-the-workstation/