In the Trigger page, select how the task should start. In my case, I want the task to start as soon as I log into the system. The Action tab lets you choose what the task should do on the trigger.
We now need to select the batch to run. This will add it to the task scheduler. First, find the task in the Task Scheduler. From the Triggers tab of the scheduled task when you select the Edit option be sure to set the Start: time and date are of a value that's NOT already passed. Be sure that this has the date and time set to that of a value in the Future. Otherwise you may notice that the job states that it's scheduled to run at the next scheduled time as you'd expect; however, it doesn't get executed by Task Scheduler nor does the Task Scheduler History tab show that it is ever executed because it's not.
Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 6 years, 2 months ago. Active 2 years, 11 months ago. Viewed 81k times. Improve this question. Pimp Juice IT 1 1 gold badge 8 8 silver badges 16 16 bronze badges.
What account are you using to run the task? What triggers did you set? Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Related Firstly, on the General tab, you need to check the user account that is being used to run the task. Next, you have to choose the Run whether user is logged on or not option and choose Windows Vista, Windows Server in the Configure for box. On the Actions tab, you have to select the script, click on Edit and then add in the path to the folder containing the script in th e Start in optional box. Now click on OK to save the settings.
When you do this, a dialog may appear where you have to enter the password for the user account that will run the task. This brings up another requirement. The user account has to have a password in order for the task to run.
Lastly, you should run the task manually once in Task Scheduler to make sure it runs. In my case, it was supposed to happen on startup and after I made the changes, everything worked fine. Note that if your script is accessing different computers in a domain when run, you should try to use the domain administrator account to run the task.
0コメント