We help IT Professionals succeed at work.

Log in to Windows with scheduler and batch command

Maggi Soffa
Maggi Soffa asked
on
54 Views
Last Modified: 2018-09-28
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

JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
bbaoIT Consultant
CERTIFIED EXPERT

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.
bbaoIT Consultant
CERTIFIED EXPERT

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
CERTIFIED EXPERT

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:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions