sumar Posted March 7, 2009 Posted March 7, 2009 I would be grateful if someone could teach me on how to schedule AutoIt to run the same script automatically at the same time every day. Thanks for your help in advance.
Developers Jos Posted March 7, 2009 Developers Posted March 7, 2009 Compile your script and schedule it with the windows scheduler ? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
sumar Posted March 7, 2009 Author Posted March 7, 2009 Compile your script and schedule it with the windows scheduler ?JosTried to use Scheduled Tasks to schedule my script but it failed to initiate automatically. What else should I do?Thanks again.
Developers Jos Posted March 7, 2009 Developers Posted March 7, 2009 Tried to use Scheduled Tasks to schedule my script but it failed to initiate automatically. What else should I do?Thanks again.Find out why it fails by adding some logging to a file?What is the script supposed to do?Post the code here so it can be checked? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
sumar Posted March 7, 2009 Author Posted March 7, 2009 Find out why it fails by adding some logging to a file?What is the script supposed to do?Post the code here so it can be checked?I set up a very simple trial script to open a file in one of my folders. Go to my log and find the following:"trial3.job" (trial3.au3) 8/3/2009 4:38:00 ** ERROR ** The attempt to log on to the account associated with the task failed, therefore, the task did not run. The specific error is: 0x8007052f: Logon failure: user account restriction. Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced. Verify that the task's Run-as name and password are valid and try again."I did not set up password for the scheduler, is it the reason?Thanks.
Developers Jos Posted March 7, 2009 Developers Posted March 7, 2009 I set up a very simple trial script to open a file in one of my folders. Go to my log and find the following:"trial3.job" (trial3.au3) 8/3/2009 4:38:00 ** ERROR ** The attempt to log on to the account associated with the task failed, therefore, the task did not run. The specific error is: 0x8007052f: Logon failure: user account restriction. Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced. Verify that the task's Run-as name and password are valid and try again."I did not set up password for the scheduler, is it the reason?Thanks.The scheduler is runnig the task in the background and you need to provide an existing Username en Password which is used by the task.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
sumar Posted March 7, 2009 Author Posted March 7, 2009 The scheduler is runnig the task in the background and you need to provide an existing Username en Password which is used by the task.JosWhich username should I use? The one filled up automatically as the administrator? I had not assigned a password to start up my computer before and that's why I left it blank. But when I assigned one randomly, it does now allow me to set up the schedule.Thanks.
Developers Jos Posted March 7, 2009 Developers Posted March 7, 2009 (edited) Which username should I use? The one filled up automatically as the administrator? I had not assigned a password to start up my computer before and that's why I left it blank. But when I assigned one randomly, it does now allow me to set up the schedule.Thanks.Assign one randomly? It is really simple: Create an account in the PC with enough rights and assign a password to it. Use this UserId and Password to schedule the Script.Jos Edited March 7, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
sumar Posted March 7, 2009 Author Posted March 7, 2009 Assign one randomly? It is really simple: Create an account in the PC with enough rights and assign a password to it. Use this UserId and Password to schedule the Script.JosI create a password to my account and the script run smoothly. Thanks so much for your help. By the way why a password is so essential for the scheduler to run?
Developers Jos Posted March 7, 2009 Developers Posted March 7, 2009 I create a password to my account and the script run smoothly. Thanks so much for your help. By the way why a password is so essential for the scheduler to run?Basic security practices applied by Microsoft?You should never create an account without a password and allow it to schedule a task or access the PC via the network..... would be kinda risky don't you think?Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now