A scheduled-task means the launch of a program or script at predefined times or after specified time intervals.

learn more… | top users | synonyms (1)

6
votes
5answers
11k views

How can I schedule a server restart from command line on Windows 2012?

I would like to schedule a one-time server restart, e.g. to finish installing updates early in the morning. How can I do this from the command line on Windows 2012? On Windows 2008, I would have used ...
0
votes
1answer
182 views

Windows Server 2008: How do I configure a scheduled task to run with the logged on user's permissions?

On Windows Server 2008 R2, with User Account Control enabled, I want to run Process Explorer (as Administrator) when I log in. Though I have administrative rights on the server, I am not the only ...
0
votes
1answer
864 views

DPM 2012 running powershell script in task scheduler

I'm having a problem running a custom PS script I created to attach systems into the console. My PS script works when i'm running it interactively in the DPM Management Shell. I was referencing this ...
3
votes
0answers
155 views

How to run a Scheduled Task as NetworkService in Windows Server 2003? [duplicate]

How do i configure a scheduled task to run as NT AUTHORITY\NetworkService in Windows Server 2003? Background Even though the account is known as NetworkService, the full name is NT AUTHORITY\Network ...
2
votes
4answers
12k views

How to schedule a task to run every x-minutes on Windows Server 2003 R2

How to add a scheduled task that should run every x-minutes on Windows Server 2003 R2. I have followed many suggestion from the web, but I always end up with some interruption after 1 or 2 runs. ...
0
votes
1answer
33 views

Running Network-Reliant Processes on Startup

I'm in charge of deploying and modifying a bit of in-house software that is meant to run on end-user workstations, which run either Windows 7 or XP SP3. The goal is to maximize the amount of time the ...
0
votes
1answer
635 views

Running scheduled task in current profile with another user

I have a doubt about Windows scheduler: I created a domain user (backupuser) appositely to launch a batch file that starts the backup. The problem is that the batch is launched in the "backupuser" ...
4
votes
3answers
2k views

Task Scheduler: Login to a session at startup and start a desktop app?

ISSUE: I have a Windows 2008 R2 VM that runs a 3rd party ERP system. They have a utility that will run scheduled jobs to backup the Oracle database and their app data nightly with a 7 day rotation. ...
0
votes
0answers
79 views

Batch script terminates too soon

I need some help with Windows batch/CMD scripting. I wrote a script to record mic-in to a MP3 for 12 hours. It runs ok when running it manually. It will run with task scheduler too - just that, ...
1
vote
2answers
2k views

How can I create a daily task that repeats every 15 mins EXCEPT between the hours of 12AM - 2AM?

Is it possible to create a scheduled task that runs every 15 min except for a few hours of the day. E.g. A task that runs every 15 minutes except between the hours of 2PM & 4PM. The reason I ...
1
vote
1answer
123 views

Windows Server 2003: Schedule FORFILE loop in TASK SCHEDULER

I am trying to create a SCHEDULED TASK that will kick off a FORFILE loop, and terminate the process after an hour (or 12 hours). I expect there to be MILLIONS of files the the paths defined, and I ...
0
votes
2answers
476 views

Windows Security: can user read local files with only 'Log on as a batch job'?

A Windows Scheduled Task runs as serviceAccount@domain.tld on a 2008R2 server. The server's local disk has some files that Joe Blow should not see. Joe Blow knows the serviceAccount password. As far ...
1
vote
1answer
348 views

Running SSH command within a scheduled task

I have simple powershell script which gets the offset of a Ubuntu server with the time of the NTP server. The command I run is $result = ssh -i C:\temp\privatekey domain\username@servername ...
0
votes
1answer
7k views

How to make a scheduled task run as a builti-in account

Windows Server 2003 R2 SP2 How do I configure a scheduled task to run under the credentials of one of the built-in accounts? I tried SYSTEM, NT AUTRHORITY\SYSTEM, Local Service, NT AUTHORITY\Local ...
1
vote
2answers
108 views

Task Scheduler with Virtual Accounts, possible?

Currently I'm using LOCAL SERVICE as the user account for various regular tasks, and was wondering if it was possible to use a Virtual Account instead. Task Scheduler seems to reject NT SERVICE\ ...
0
votes
1answer
3k views

GPO for Scheduled Task Server 2008 R2 (Computer reboot)

I am currently running into a bit of a problem. I am trying to create a GPO that reboots all computers in a specific OU at a specific time using Server 2008 R2 64 bit. I have gone into GP ...
1
vote
0answers
338 views

WebDAV client on windows 2008R2 running slow from scheduled script

I have a rather unexpected situation here. I have a small application that connects to a WebDAV server (Sharepoint) using the standard WebDAV windows client (WebClient service, part of the "desktop ...
1
vote
2answers
159 views

Trigger event to fire when user connects to a terminal server?

We have a (very) fragile software suite running on a server in our datacenter that requires a user to be logged in, but freaks out and crashes if the user logs in twice (resource contentions, all ...
0
votes
1answer
49 views

Maintain Windows File Shares When Logged Out

I have a Windows 2003 Server that connects to several Windows File Shares on other machines. I copy files to these file shares using some Scheduled Tasks that call a batch script. My issue is when the ...
1
vote
1answer
536 views

Access Denied when creating a scheduled task with powershell and the com schedule.service object

I have a powershell script that creates a scheduled task using a call to RegisterTask via the Schedule.Service com object. Essentially: $ts = new-object -com Schedule.Service $ts.Connect() ...
2
votes
1answer
1k views

Scheduling a Task for every minute in Windows 2012

I need to schedule a Task inside of my Windows 2012 to run every minute, how would one accomplish that? This is my Task: C:\>C:\Users\Administrator\Downloads\wget\bin\wget.exe --spider --quiet ...
-1
votes
1answer
1k views

How do I use Windows Task Scheduler to run an executable on a remote server? [closed]

I am looking at consolidating all of our scheduled tasks that run on various servers (Win 2008 R2) within our domain on to one "Task Scheduling Server". I am a developer so I'm not even sure if this ...
0
votes
6answers
2k views

Can I schedule machine boot via Dell iDRAC?

I have a Dell PowerEdge R410 with iDRAC 6 configured and accessible. I know we'll be losing power at some point this weekend and I have a time that I would like to power on the machine again. From ...
0
votes
2answers
3k views

2008 R2 Task Scheduler won't run task, but says completed successfully w/o errors

OLD DESCRIPTION: I have a .NET app I wrote myself that I'm trying to get set up to run as a scheduled task on Windows Server 2008 R2. When I run the app myself from the command line, it works just ...
0
votes
1answer
375 views

MSsql 2008 sql agent task output to network drive

I'm trying to get the SQL agent job (task) to run my query then put the output file to network drive. When I select the output file the only drives listed are local. I'm new to jobs and MSSQL but have ...
5
votes
2answers
3k views

Why do weekly tasks created via PowerShell using a different user fail with error 0x41306

We have some scripts that create scheduled jobs using PowerShell as part of our application. When testing them recently, I noticed that some of them always failed immediately, and no output is ever ...
2
votes
1answer
3k views

PowerShell script not completing what it should do when scheduled with Windows Task Scheduler

I found a script that can delete files over X days old and changed it a bit so that I will scan different network folders to see if there are files that are older than X days. Now when I run the ...
1
vote
2answers
101 views

batch file is not being executed from scheduled task

I have batch file that need to run every day at 9 AM and create log. batch file works fine manually (by clicking it or from command line). However, When i set up the task by using task scheduler, it ...
1
vote
4answers
161 views

Checking for changes to cronjobs

Any way check and notify if some one made a change/addition to cronjobs for a particular user on a Linux server? Is it possible to know the changes made too?
2
votes
1answer
6k views

Can I schedule a windows task to run in an interactive desktop session?

I'm trying to create a scheduled task that will run once daily on a dedicated machine. The task will run an exe. That exe does a bunch of things, including running automation that manipulates the ...
1
vote
2answers
293 views

Stored passwords and scheduled tasks in Windows Server 2003

In general, if you are PC\Admin and you have a stored password for network share DOMAINSERVER\Share (done using the interface "Stored User Names and Passwords"), and you have a scheduled task that ...
1
vote
1answer
37 views

Win7 scheduled task minute settings?

I must process a bat file for every minute but win7 scheduled task not allow per minute. Lowest 5 minutes. Can I set scheduled task win7 for per minute?
1
vote
1answer
1k views

How to limit excessive CPU usage from guest OS in KVM

On Xen it is easy as we have CreditScheduler [1], so on a machine with each guest OS sharing only portion of CPU, e.g. 6 guests running on top of a dual core CPU, excessive CPU usage is prohibited. ...
4
votes
1answer
2k views

Scheduled Tasks and Environment Variables

I have a scheduled task, a batch file, that uses an environment variables which is set system-wide. On server 1, the scheduled task runs under a domain account and the environment variable works. The ...
3
votes
3answers
824 views

Exchange PowerShell in a Scheduled Task runs forever

I have a couple of Exchange 2010 PowerShell scripts that I'd like to run as Scheduled Tasks. If I launch PowerShell using "Run as different user" I can run the scripts and they execute correctly. If ...
0
votes
3answers
372 views

Setting a scheduled task running a Powershell script

Does anyone know the correct way to assign a Powershell script as a scheduled task? I have the below syntax (where X:/ is another drive mapped as a share).
1
vote
3answers
2k views

Ok to edit task's xml file in c:\windows\system32\Tasks?

I wrote a PowerShell script that check the executable in the < action > tag for each task in the Task directory and mark the < enabled >TRUEorFALSE< / enabled > tag as false/true depending on ...
2
votes
2answers
3k views

Scheduled task fails, but runs fine when triggered manually

We have a 2008 R2 server with a scheduled task that runs a .bat file which executes a call to a Java app. The task triggers just fine, but stops executing anything after it creates the log file. ...
1
vote
1answer
425 views

Xcopy and hosts file in windows scheduled tasks

I have some trouble with xcopy or maybe with windows/drivers/etc/hosts DNS file. If I add my xcopy command in a windows scheduled task, xcopy can not resolve server's name stored in hosts file, ...
0
votes
2answers
2k views

Windows Task Scheduler fails at sending e-mail

The error is 2147746321. I can see in the mailserver log that it tries, but the connection gets closed. Wed 2012-10-10 15:55:25: Session 990590; child 1 Wed 2012-10-10 15:55:25: Accepting SMTP ...
1
vote
3answers
2k views

Why does powershell -command “Restart-Service Tomcat6” fail when run from a Scheduled Task?

I get the following error in the Scheduled Task history when I try to run a task: Task Scheduler successfully completed task "\Restart Tomcat" , instance "{264b4620-5f3b-6c5f-a6cb-1625a7fa57de}" , ...
2
votes
2answers
1k views

My PowerShell script won't save to file when running using Task Scheduler; do I need to specify a specific argument?

I have a script that downloads a temporary Excel file, copies parts of it to a new file, and saves it to a specific location on the network. The problem is that the new file is never created/saved. ...
3
votes
3answers
462 views

runas without asking for a password

On a Windows server which is in a domain, I have a script I run from scheduled tasks. I want this script to be run under a mydomain\peter user account. It is simple to do it with scheduled tasks, ...
2
votes
1answer
291 views

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 ...
1
vote
1answer
320 views

Suggestions for Scheduled Tasks to call OSQL without hard-coding cleartext password

Can anyone think of any techniques where i can have a Windows scheduled task run OSQL, but not have to pass the clear-text password with cleartext password being in the clear? E.g.: >osql -U iboyd ...
0
votes
2answers
4k views

Why is “start in” needed for Windows scheduled tasks?

We develop a web application that can be deployed on Windows or Linux. The Linux implementation uses cron, and the Windows one uses scheduled tasks to run a single PHP script that processes all ...
2
votes
1answer
3k views

Scheduled task running twice from time to time

A customer of mine is experiencing a very strange problem: a scheduled task is running twice from time to time, with only a few seconds between execution. The task is scheduled using the windows ...
1
vote
1answer
43 views

Can I prevent a scheduled task to run before a certain date

As in, I don't want the scheduled task to run before the 15th of every month. Even if I (or someone else) accidentely presses 'run'. I could also write something in the code, but I don't want to ...
4
votes
2answers
685 views

Is it possible to have a scheduled task click a button in Windows?

One of my clients has an application that can not be run from command line or via API but needs to be run on an scheduled basis. It would require that I launch the application if it's not already ...
2
votes
2answers
5k views

Task scheduler does not kill task

We have a scheduled task that sometimes hangs. It just stops responding. On Windows 2003, we had task scheduler configured to kill the task after 3 hours. It's a 32-bit process. On Windows 2008 ...