Schedule task and autologin

Hi Experts,

I have an old PC and I like to schedule a task for it to reboot overnight daily and also it should login to the account automatically. This is an old legacy PC and I need the services to be up daily. This is XP computer.

any instructions will be appreciated.
SR ZakNetwork Solutions Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joe Winograd, Fellow&MVEDeveloperCommented:
Here's a roadmap for you showing one way to do it:

(1) Schedule the task with the Windows Task Scheduler to run daily at whatever time you select. This 5-minute EE video Micro Tutorial explains how to use the Task Scheduler:
How to use the Windows Task Scheduler - An Introduction

I did the video in W10. The Task Scheduler UI is different in XP, but the functionality that you need is still there, i.e., the ability to schedule a daily task.

(2) Write a script in whatever scripting language you prefer. One such language is AutoHotkey, which you may learn about in this EE article:
AutoHotkey - Getting Started

AutoHotkey works fine in XP.

(3) Perform the reboot in your script. Here's an EE article that has a complete AutoHotkey script with a reboot:
How to solve the problem of incorrect System Uptime being reported when a system has been up for a long time (approximately 50 days or more)

(4) There are various ways to do the automatic login, such as configuring XP to login automatically or sending mouse clicks and/or keystrokes via the script.

Regards, Joe

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SR ZakNetwork Solutions Author Commented:
Hi Joe,

I am network guy so I rarely get involved but this was an issue of voice services and hence I got dragged into it. Thank you for your article,  I did use tweakUI in the past but could not remember the name of the program, so reading through you article I found the name.

My steps are below,
Created a batch file with the reboot command line, added that to my daily schedule.
Ran the tweakUI app in the xp machine and configured the autologin parameters.

Thank you,
SR ZakNetwork Solutions Author Commented:
Joe, provided a handful of information to tackle my situation and it worked. I appreciate his forthcoming and helping me out.

Thank you JOE!
Joe Winograd, Fellow&MVEDeveloperCommented:
You're very welcome, Habib, and thanks back to you for the kind words and for documenting the steps that you used to solve the problem. Regards, Joe
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.