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)

3
votes
1answer
614 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 ...
1
vote
1answer
92 views

Will a Scheduled Task On Windows Server 2008 R2 work correctly if windows are opened and closed?

I have a batch script that I am currently running on my own Windows 7 computer as a scheduled task. The task runs nightly when my computer is locked. The task launches an Progress OpenEdge session ...
3
votes
2answers
417 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 ...
0
votes
0answers
158 views

Windows Task Scheduler Option “Do not start a new instance” runs a second instance of my script, known bug?

I am using a small powershell script which checks the ram and disk usage , just some metrics. This script sleeps for 15 seconds and then runs again. Only 1 script is triggered and this should kept ...
1
vote
1answer
104 views

Solved: Can I define scheduled tasks before naming the computer?

When scheduling a task it's scheduled as running as a specific user/group. Can I on a vm schedule a task, then sysprep, and then deploy the image to a machine which I then name and join to a domain? ...
1
vote
1answer
187 views

If I disable a Windows task in task scheduler will it stop the current task that's running too?

Let's say I have scheduled Task A in Windows Server task scheduler, and it's set to run 6 times a day. I manually run it 20 minutes before it's about to run next, but I forget that it's going to take ...
2
votes
1answer
453 views

schtasks - create task with no schedule that runs on demand

I am trying to use schtasks.exe and create a one-time task that runs on demand. I just want to create the task without a schedule but the command schtasks /create /tn TestTask fails with Invalid ...
1
vote
1answer
627 views

Scheduled Task fails to start due to network connection condition even when connection is available

I have a scheduled task with a condition set to "Start only if the following network connection is available". I've selected my VPN connection. However, even when my VPN is connected the task will ...
5
votes
2answers
4k views

What causes scheduled task error 2147942402?

Server 2008 R2 (fully patched) I'm trying to run a scheduled task to move a specify type of files from C:\Windows\Temp to E:\Foo_blah_blah_blah_blah\Foo2 and for some reason am getting the following ...
3
votes
1answer
1k 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
393 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 ...
2
votes
4answers
209 views

Windows client powershell reporting

I'm working on trying to find a way to get our windows machines to report to a webpage with information about it's MAC address, computer name, currently logged in user, and ip address. I wrote a ...
1
vote
0answers
246 views

How does Windows Task Scheduler detect that a task is already running?

I have an application on Windows Server 2008 that takes different command-line parameters. For example: myapp.exe /A myapp.exe /B I have created a task scheduler task for each of those. While ...
1
vote
3answers
439 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 ...
5
votes
3answers
1k views

Scheduled Jobs during hours of autumn time change

I'm wondering how other people deal with this scenario. What if you have a job scheduled to run at 1:30 am. In the autumn, when time changes, the hour of 1:00:00 to 1:59:59 repeats itself and so ...
5
votes
4answers
2k views

Task scheduler ran a task twice

Update: This has now happened two days in a row. Update: XML of scheduled tasks and images now included. Two servers located in London, both Windows 2012, have a scheduled task set to run at 3pm ...
0
votes
4answers
3k views

Robocopy fails in Scheduled task with ERROR 1326 Logon failure

My aim: To simply mirror a database backup directory onto another server Approach: Use Robocopy statement contained in a scheduled task robocopy "C:\MylocalDirBackup" "\\MY.IP\DatabaseBackupsShare" ...
3
votes
1answer
44 views

Windows Service Console app user

I've created a very simple C# one liner app which keeps an IIS/Entity Framework web application warm by simply loading the page (Using the built in IIS Warm up just wasn't working for me). I want to ...
0
votes
0answers
74 views

Windows Server 2003 Task Scheduler Fails to Kill Task Unless I'm Logged in

I am having problems with a process started by a Windows task that is not being killed properly after it has run for a pre-determined amount of time even though the Windows task is created to kill the ...
0
votes
1answer
70 views

SMS paging sends a new number every time

We have set up SQL Server to send out alerts when jobs fail. Text messages are sent to 1234567890@txt.ATT.Net, and they show up on our phones. However, the alerts come in from a weird 9-digit number ...
0
votes
0answers
62 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 ...
1
vote
0answers
79 views

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 ...
2
votes
2answers
332 views

Windows server 2012 scheduled tasks run using default profile ( when ran session less ) even if specific account is specified

As pointed in http://social.technet.microsoft.com/Forums/windowsserver/en-US/5e6dc56d-9069-42e3-a7e3-87437cf8ed81/scheduled-tasks-run-in-the-default-user-profile ( No answer from microsoft yet ) I'm ...
0
votes
1answer
133 views

Windows Server 2003 - AT command for repeating a scheduled Task

Is it possible to use the AT command to create a scheduled task that repeats every X minutes? I can use AT to make one that repeats daily/weekly/monthly, but haven't seen a minute/hourly repeat. I can ...
1
vote
1answer
91 views

Schedule Task 2008 R2 - cmd line requires unix utc time - how to get it dynamically?

These forums are great, and I'm hoping to get some help with a headache I have on doing a process manually that should be easier to automate than I've found it to be. I have a command line tool from ...
1
vote
1answer
622 views

env variable: username returns hostname within a Scheduled Task - GPO

I am editing a Group Policy Scheduled Task. In General, Security Options "When running the task, use the following user account:" I have the following- %USERDOMAIN%\%USERNAME% Updating the gpo, and ...
1
vote
2answers
80 views

Boot time scheduled tasks using network resources

I'm setting up a single shared directory accessible to multiple servers for resources used during various scripts, \servers\share. This directory is used for scripts including some that are ...
1
vote
2answers
1k views

.cmd in Windows Server 2008 task scheduler w/o highest privileges

Is it possible to run CMD script in task scheduler as a particular user without checkin option "Run with highest privileges"? Simple test: Create D:\Admin\Scripts\TestScripts\testscript.cmd ...
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. ...
2
votes
1answer
256 views

MSSQL Server 2012 Scheduled PowerShell Job fails

I have a simple PowerShell script that runs fine from the console (PSVersion 2.0). $psftpPath = "C:\Program Files (x86)\PuTTY\psftp.exe" $sftpHost = "foo.baa.com" $userName = "myusername" ...
0
votes
3answers
531 views

Windows Server 2003: start program on event in event viewer

With windows server 2008 you can start a program using scheduled task triggered by event on event viewer. Is there a way to emulate this with Windows Server 2003? Thank you in advance
1
vote
1answer
3k 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
2answers
2k views

What user account should we use for scheduled tasks on a server with sensitive mateiral?

I'm working in a team with 10 developers. We have servers set up which performs backup, automated build of software, automated deployment and more. Some of these servers contains sensentive material, ...
1
vote
1answer
330 views

do scheduled tasks in windows server 2003 r2 overlap?

does windows server 2003 r2 allow the overlapping of scheduled tasks? say i scheduled a script to be called every 5 minutes but there would be an instance that it might take 10 minutes. when a tasks ...
0
votes
1answer
52 views

Security Policy Logs On Windows 7 - Determine Why A Certain Software Function Fails

Is there a log file or administrator screen (like Event Viewer) where one can see specific rules that are being enforced? You know how you can use Process Monitor to monitor a task and see registry ...
0
votes
0answers
781 views

Scheduled Task to shutdown computer after 2 hours of inactivity?

We have around 900 machines in two locations. 95% of these machines are shared, and we find users don't log off or shutdown as often as they should to get updates. I thought I would create a ...
6
votes
5answers
7k 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
136 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
683 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
153 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
8k 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
515 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
74 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
106 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
256 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
287 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
5k 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 ...