Avatar of Maggi Soffa
Maggi Soffa
Flag for Iceland asked on

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

Avatar of undefined
Last Comment
Maggi Soffa

8/22/2022 - Mon
John

bbao

> scheduled batch file

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.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
bbao

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.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
John

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.

The computer is VM
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
John

ASKER CERTIFIED SOLUTION
Maggi Soffa

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.