Questions tagged [task-scheduler]
319 questions
2
votes
1 answer
Task Scheduled Powershell Script Not Shutting Down machine
I have a task running on a Hyper-V server setup as such:
schtasks /CREATE /TN AutoShutdown /RU "SYSTEM" /TR "Powershell \"C:\AutoShutdown.ps1\"" /SC ONSTART
It runs properly (as far as I can tell) however the script has a line to shutdown the…

Gavin Greenwalt
- 151
- 6
2
votes
3 answers
Monitoring file for changes and immediately take action on change
How can I constantly monitor (small) file for changes?
Eg. when file is updated (action from web application), a script is executed (if not already running).
Right now, I do it every minute using cron, but this has delay up to one minute. I'd like…

takeshin
- 1,471
- 3
- 21
- 28
2
votes
2 answers
Bizarre behavior of e-mailed reports (text files) via Task Scheduler
I’m still pretty new to powershell and practical implementations of it… but I created a script to monitor disk health and have some very bizarre results on 2012 R2. Wondering if anyone has seen the likes of this and/or has a solution… Or is it a…

Multiverse IT
- 1,825
- 9
- 11
2
votes
1 answer
How to send email when SPECIFIC scheduled task fails to run or returns with an error code
I have a backup script (Powershell 1.0) that is executed every night by the Task Scheduler on my Windows 2008 box. If that script should fail to start, e.g. because the script has been moved or something similar, or if the script fails during…

Egil Hansen
- 203
- 2
- 8
2
votes
2 answers
Server 2012 Scheduled Task CMD mysqldump not doing what is intended
I'm running a batch file to back up some mysql databases on a 2012 webserver. The batch file creates a folder, then runs the following for each db:
mysqldump -u *username* -p*Password* *db_name* >…

Mr T
- 119
- 1
- 6
2
votes
1 answer
Save Custom View from Event Viewer in .evtx
I have a Custom View in the Event Viewer with a couple of Event id's. I know you can save those event id's in an .evtx file to open it. This proces has to be executed manually. Now is my question, how can I automate this? Through a PowerShell script…

user3603657
- 73
- 2
- 7
2
votes
0 answers
Strange behavior of Windows Server 2003 task scheduler
I've got a task, which runs fine while launching it with "Right click / Run" in the scheduler, but fails with a weird "SQL Server login fail" due to bad login while ran automatically at specified time.
Login for SQL Server is internal SQL Server…

AFract
- 121
- 3
2
votes
2 answers
Schtasks -- what is wrong with the following command
The following script schedules successfully but will not actually, you know, restart the server.
schtasks /create /tn "restart test" /ru "domain\admin" /rp supersecret /sc once /st 11:35 /tr "PowerShell -command {Restart-Computer -ComputerName…

Kernel Panic
- 291
- 2
- 8
- 19
2
votes
1 answer
Windows Server Task Scheduler: Running scheduled executable fail-safe?
I have an executable which I've scheduled to run once in every five minutes (using Window's built-in Task Scheduler). It's crucial that this executable is run because it updates few time critical files. But how can I react if the virtual server…

Mikael Koskinen
- 133
- 5
2
votes
2 answers
Task Scheduler and Virtual Machine Monitoring
I'm looking for the poor man's monitoring solution. I have a Hyper-V 2008 R2 environment where power fluctuations at off-peak hours are pretty common. The battery keeps the box up for a fair amount of time. I'm working on a solution to have the…

Brent Pabst
- 6,069
- 2
- 24
- 36
2
votes
1 answer
Task scheduler, keep a certain number of tasks running
I have 400ish time consuming web extraction tasks that I want to run, but rather than just running them one after the other I want to run i.e. 6 at a time to speed the overall task time up. What I want to achieve ideally is to create the 400 tasks,…

Stephen
- 21
- 1
2
votes
2 answers
How to schedule task to run every 10 minutes, from 8:00 to 15:00 on multiple days of week (with schtask.exe)?
How to schedule a task to run every 10 minutes, from 8:00 to 15:00 on multiple days of week, i.e. on Mon,Tue,Wed?
The task I described can be defined with the GUI of Task Scheduler by using the 'Advanced' button in the 'Schedule' tab in the task…

colemik
- 759
- 1
- 12
- 24
2
votes
1 answer
Intelligent Task Scheduler
Is anyone aware of a tool for creating optimal schedules for tasks? I have numerous servers, running multiple databases, with various scripts that import and transform data to and from each database.
I'm currently scheduling the various cronjobs by…

Cerin
- 3,600
- 19
- 61
- 79
2
votes
1 answer
How to configure 'qsub' to use a scheduling system like LSF or SGE?
There are several scheduling system (workload management system). Like SGE(Sun Grid Engine), LSF, PBS. Usually on a workstation, using 'qsub' command can put a job in a queue, then the scheduling system will take over from there. I got some…

Stan
- 1,387
- 6
- 24
- 40
2
votes
2 answers
How to schedule a job to run every 10 minutes in TWS
TWS is Tivoli Workload Scheduler.
I have scheduled a job, and made it repeatable every 10 minutes. I put it in a job stream with a run cycle of daily.
Now, the job runs once every ten minutes on the first day, twice on the second day and so on.
What…

Bezz
- 31
- 1
- 1
- 4