Log in to Windows with scheduler and batch command

Maggi Soffa
Maggi Soffa used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
bbaoIT Consultant

Commented:
> scheduled batch file

what's the schedule in detail? is it just a single, specific time every day? or multiple instances in a day?

Author

Commented:
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.
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

bbaoIT Consultant

Commented:
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.
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
Did you try Task Scheduler (made for this)
bbaoIT Consultant

Commented:
> 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.
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
I think it can run in a logged off state.  I will check again .
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
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.

Author

Commented:
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.

The computer is VM
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
It looks like this is not possible so I leave the computer logged on all the time. It works for my.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial