3
votes
1answer
250 views

Defrag options in Windows Server 2012

I am looking at the command line options for defrag.exe as well as the "ScheduledDefrag" task on Windows Server 2012, and I don't understand some of the arguments. In particular, when I view defrag ...
2
votes
2answers
1k views

Add a new scheduled task from command line with “wake the computer to run this task” on

I'm trying to add a scheduled task to start every day at a fixed hour even if the computer is in sleep mode. In the Windows Scheduled Tasks Manager UI, there is a check-box labeled "Wake the computer ...
1
vote
2answers
979 views

How can I create a scheduled task from the command line that only runs on demand?

I"m trying to duplicate the steps in this article for creating a shortcut that launches a program without a UAC prompt. I'd like to create the task from the command line, however. Here's the ...
4
votes
1answer
4k views

How to delete scheduled task from command line without confirmation? (schtasks delete)

I can create a task from command line like this: schtasks /create /tn SomeTask /tr "do.bat arg1 arg2" /sc ONCE /st 00:00:00 /sd 01/01/1991 and now I need to delete it. However the command needs to ...
1
vote
0answers
122 views

Windows 2008 Scheduled Tasks and Parallel instance issue

I have a scheduled task launching a bat file which runs a CLI PHP script. The scheduled task is configured to run every 5 minutes, and run multiple instances in parallel. However, windows is ...
1
vote
1answer
304 views

Windows Server Scheduled Tasks running command windows, how to prevent them from popping up?

On one of my servers we have a lot of scheduled tasks running java programs and what not. The problem is that everytime one of these runs the command window pops up and distracts any work that is ...
8
votes
2answers
8k views

Is it possible to disable a scheduled task from the command line in Windows XP?

On my Windows 7 machine I can run something like: schtasks.exe /Change /TN "MyTaskName" /Disable But /Disable doesn't seem to be available in Windows XP - is there any way of disabling it from the ...
4
votes
2answers
3k views

How to schedule a task for multiple days of a month using schtasks.exe?

Since task scheduler API has been changed after Vista & Server 2008, scheduling a task with schtasks is (as much as I know) the only way that works on both Windows 2003 Server and Windows 2008 ...
4
votes
2answers
24k views

List, add, edit, delete Windows Scheduled Tasks from the command-line

Is there a command-line tool that can be used to programatically list, add, edit and delete Windows Scheduled tasks? I realize that there are better alternatives to Scheduled Tasks, but I need to ...
0
votes
1answer
4k views

Passing password from scheduled task to WGET --proxy-password argument?

I am trying to set up a daily scheduled download of files from an external web-server, using WGET, Windows' task-scheduler and command-scripts. Since WGET will be run on a server from within the ...
78
votes
8answers
119k views

Run a .bat file in a scheduled task without a window

I have a scheduled task that starts a batch script that runs robocopy every hour. Every time it runs a window pops up on the desktop with robocopy's output, which I don't really want to see. I ...