9
votes
5answers
235 views

Program does not run properly as Scheduled Task

Situation I have a batch script that prepares some files, executes a program (.exe) and then deletes said files. This task should run hourly, so I'm trying to configure this using Scheduled Tasks. ...
-1
votes
3answers
48 views

Can't create new task with schtasks… Why?

I have a new Windows Server 2008 R2 host with a strange (?) behavior. I try to schedule a new task into Task Scheduler. I'm using a user that's part of administrators group. If I do it from the ...
-1
votes
1answer
29 views

Child process runs in normal priority only. Why? [closed]

I run a scheduled task in Windows Server 2008 R2. I used the technique described here to set its priority to high priority (level 1 of 7). My task runs a process (an EXE file) that creates child ...
0
votes
0answers
51 views

Getting the `The application failed to initialize properly`/3221225794 error executing a batch file

There is a scheduled task that is attached to a custom event in the EventLog, it executes the lines below: reconnect.cmd c:\windows\system32\rasphone -f "phone_book.pbk" -d "vpn_connection" ...
0
votes
1answer
68 views

How to kill a running scheduled task?

I have scheduled a task on Windows Server 2008 R2 Task Scheduler that kicks off a python script. However, when the task is running, I don't see the process spawned in the Task Manager and therefore am ...
0
votes
2answers
83 views

View Scheduled Tasks (local and remote) on Windows Server 2008 R2

In one of our production nodes which runs on Windows Server 2008 R2, we have noticed that there is a significant delay (5 times normal) in processing requests (by our application running on tomcat) ...
2
votes
1answer
384 views

Windows 2008 R2 task scheduler with Batch and VBS

I've created a batch file called restart.bat :: Open a Telnet window start telnet.exe 10.20.11.12 :: Run the script %systemroot%\system32\cscript.exe //Nologo //B C:\Scripts_and_Tools\SendKeys.vbs ...
5
votes
1answer
127 views

What is the default working directory for a scheduled task in Windows 2008 R2?

Trying to figure out where the output of a long running scheduled task is being saved. Presumably, it's in the working directory of the task. Unfortunately, the "Start in" option was not set. The ...
1
vote
0answers
69 views

Trigger task on USB insert instead of insert and removal

i'm using Windows' task scheluder to trigger a task when a specific USB device is plugged to the computer, problem is the task is also triggered on USB removal. I used custom XML trigger for this ...
10
votes
1answer
400 views

Task Scheduler 2.0: Difference between “Stop task if…”

Using the Task Scheduler in Windows Server 2008 R2 or Windows 2012, etc... What is the difference between this setting: and this setting on the same task: Does one take precedence over the ...
3
votes
3answers
907 views

How can I disable a scheduled task using Powershell?

I have a web application that runs on Windows Server 2008 R2, which has a large number of scheduled tasks which take care of all the backend stuff. When I do a software deployment which touches the ...
1
vote
1answer
209 views

Windows Scheduled Task ignores the 'Stop the task after <time period>' setting

I have a Scheduled Task running on a Windows 2008 R2 server. The task calls a .bat file that performs a file copy. Everything works perfectly except for one thing. I want the task to terminate if it ...
3
votes
2answers
290 views

Stopping a scheduled task with WMIC

I need to find some method for disabling a scheduled task on a remote machine and waiting until that task has stopped executing if it happens to be running at the moment. I'd like to do this through ...
3
votes
1answer
997 views

Scheduled Task to run 32-bit PowerShell Script with 3 Arguments

TL;DR Version I need to run a 32-bit PowerShell script that takes three arguments as a scheduled task in Windows Server 2008 R2. The script starts a FileSystemWatcher, so I need to keep it alive so ...
1
vote
0answers
349 views

How can I run a scheduled task on a Windows 2008 R2 Domain Controller as a non-admin user?

I'm trying to run an exe as a scheduled task on a Windows 2008 R2 Domain Controller. The exe runs fine when I try and run it manually using an account which is a Domain Administrator, but I don't ...
1
vote
3answers
345 views

make scheduled task active/passive cluster aware

I have 2 nodes using win server 2008 r2 in my active/passive cluster setup. They have the same set of scheduled tasks and i want them to run only when the node is active. Does Windows support ...
0
votes
0answers
55 views

Automated Logon with Macro backup script

I'm having some issues with an automated backup macro script I've written using Autohotkeys. My specific issue is that I need the script to run on a Windows based server at a given time during the ...
2
votes
1answer
1k views

SBS2011 (Windows Server 2008 r2) Correct way to Schedule reboot

I'm after the correct way to schedule a reboot on an SBS2011/WS2008r2 box. External support company created a reboot.bat file and added a scheduled task to run it at 6am every Monday morning. ...
1
vote
1answer
2k views

SchTasks giving out error (0x1) on Windows 2008 R2

i have a powershell script which creates scheduled tasks as a part of automation process and my syntax is following; schtasks /create /s ServerName /u $username /p $password /ru $username /rp ...
0
votes
1answer
109 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 ...
4
votes
3answers
1k 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. ...
1
vote
2answers
1k 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 ...
0
votes
2answers
234 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
73 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
1k 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
259 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
votes
1answer
841 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
2answers
2k 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 ...
5
votes
2answers
2k 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 ...
1
vote
2answers
88 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 ...
3
votes
1answer
1k 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 ...
0
votes
3answers
319 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).
2
votes
2answers
2k 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. ...
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 ...
2
votes
1answer
2k 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 ...
2
votes
2answers
4k 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 ...
2
votes
2answers
114 views

Easy way to reload multiple applications under a single IIS Website after AppPool Recycle?

I'm not sure where to begin or even if my thinking is in the right direction. Hopefully someone here can tell me what to do or at least give me a direction to start travelling. I work on a Intranet ...
1
vote
1answer
221 views

Task scheduler not running (Server)

I have written a simple bat file to copy .txt files from one drive into another one. I want this to run everyday at this time but the problem is when I'm not logged in to the server the task does not ...
0
votes
1answer
523 views

Can't set up task to run from non admin user

I have Windows server 2008 R2. One non administrator account named for e.x. abc. abc is member of backup operators, power users and schedulers. I have allowed all permisions to C:\Windows\Tasks for ...
2
votes
2answers
4k views

Permissions for Scheduled Tasks on a Domain Controller

I'm trying to run a Scheduled Task on a 2008 R2 Domain Controller and all was well until I set it into the production environment. I'm running the task as a Domain User that's defined in the "Log on ...
1
vote
1answer
1k views

The user cannot start a task on Windows Server 2008 R2

Why would a user who is a member of the 'backup operator' group be unable to run a task? It simply does not start - there is no error that I can find. I changed the user of the Windows Server Backup ...
1
vote
2answers
421 views

Windows Server 2008 ask to change admin password and scheduled tasks stop working

Every time Windows Server 2008 R2 asks me to change the admin password all the backup related scheduled task stop working, is there any way to avoid this? Backup is a serious thing an have to work ...
1
vote
2answers
670 views

How do I import multiple tasks from a XML in Windows Server 2008?

I have all the tasks from a server in a XML file obtained using schtasks /Query /XML ONE>C:\schedtasksBackup.xml Now, I want to import all the tasks in another server. All the info explains how ...
1
vote
1answer
65 views

Start non-terminable program upon user logon

I would like to start a program in the background if an Active Directory User of a specific group logs on. This program should not be terminable by the user itself. I have tried to create a Task ...
1
vote
2answers
1k views

Windows 2008 R2 Scheduled Task Not Running With Admin Privileges even if granted?

I have a scheduled task that is running as USER. I have checked the box "Run with highest privileges" in the scheduled task properties. The task is a powershell script that, among other things, ...
46
votes
4answers
15k views

How do I rename a task in Task Scheduled on Windows Server 2008 R2

I have some tasks in the Task Scheduler on Windows 2008 R2. I created them as the admin and I'm logged in as the admin. I have no easy way to rename the tasks. The only way I can is to export the task ...
1
vote
1answer
98 views

Least privilege for backup app

I've written an app that compresses then sends backup files to a remote destination via SFTP. It is written in .net4/C#. I'd like to make an entry in the Windows scheduler to run this app at x ...
2
votes
2answers
942 views

wbadmin doesn't run as scheduled task

Continued from: http://serverfault.com/questions/172349/wbadmin-system-state-backup-fails When I put the following a bat file and run it as scheduled task, I see that the webadmin.exe process ...
8
votes
5answers
10k views

Process runs slower as a scheduled task than it does interactively

I have a scheduled task which is very CPU- and IO-intensive, and takes about four hours to run (building source code, if you're curious). The task is a Powershell script which spawns various ...
0
votes
1answer
1k views

Open Web Page in Windows 2008 R2 Task Scheduler runs forever

I have a number of scheduled tasks which simply open a web page in Windows Server 2008 R2. They used to run and end without abending, but now they open and stay open and I have to setup the task to ...