Run batch file windows 7 task scheduler


















Enter System as the user and click OK. This will cause the script to run using the System account instead of your account. Your display will look similar to the following graphic. Click OK. Test your task using the following steps: Select Task Scheduler Library within the Task Scheduler, and locate your task. Right-click your task and select Run.

Notice that you won't get any feedback indicating success or failure of the task. Select the History tab of the task in the middle pane. It should show that the task completed with a time stamp. First, make sure that you have the batch script ready and stored in a safe place.

The location is important because if the file is moved or deleted from that location, the task will not run. 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. Active 7 years, 11 months ago. Viewed 2k times. We have hundred of users and this script has to run on first log-in for every user. Will really appreicate as i am stuck now.

Improve this question. You need to save some kind of flag and have the script check for the flag, i. If it has to happen once for each user only, clearly it's doing something that you can recognise second time around.

The key will be deleted automatically after item is executed, at 1st login. Add a comment. Active Oldest Votes. Sign up or log in Sign up using Google.



0コメント

  • 1000 / 1000