Newest 'scheduled-task' Questions

Q&A for system and network administrators

Scheduled restart of a service with powerhshell as non-admin service account

Before I get shot down, I know how to schedule a task, restart a service with powershell or give a non-admin account the privileges to restart a service. That isn't the problem. The problem however is ...

Create windows task using group policy with limited privilages that anyone can run

Using group policy I created a windows task that any user can run manually but that runs under a specific domain user (e.g. DOMAIN\task_user) that has been assigned very limited access privileges. ...

Windows Server update - noncritical update installation with delay

Is it possible set automatically update installation with delay from publish date?? For example, install it 1 month later. I want to set it only for not-critical security updates at Windows Server ...

at command: Exec failed for mail command: No such file or directory

I got to run a task today at midnight on a debian system. As I never did anything with atd I wanted to try first, if it works as expected. I got a test.sh in folder /usr/local/dump/ which contains ...

How to prevent Task Scheduler errors/fails

There seems to be lots of myths and bugs upon research not many useful items were returned or maybe outdated "Run whether logged on or not", according to many posts/results saying this function is ...

Windows Server 2008 scheduled task only works with “Run only when user is logged on”

I have a scheduled task that is set to run an R script by launching Rscript.exe and the file of interest. This task completes successfully when I run it with the option "Run only when user is ...

How to properly debug XMLRPC fails

I have an Odoo instance runing on Ubuntu server and I want to query the XMLRPC api from a Windows machine in the same subnet. The two can normally communicate and it all works ok, but if I set the ...

Register-ClusteredScheduledTask : The parameter is incorrect

While executing below Register-ClusteredScheduledTask i am getting this error. Register-ClusteredScheduledTask -TaskName $ClusterTaskName -TaskType AnyNode -Xml $TaskXML | Out-Null Register-...

Scheduled Powershell script occasionally dies midway through

I have a few powershell scripts that are scheduled, and they usually run just fine (both as a scheduled task, and when run manually) I've got an issue where occasionally, they just stop working ...

Windows Server 2016 scheduled task schedule must be in future

We have a 2012 server that has about 20 scheduled tasks that are used for monitoring. We have built a 2016 server to replace it and as I move tasks to the new server I have run into an issue. Most ...

Task Scheduler in Server 2016 Datacenter Edition Doesn't Run Automatically

We are migrating some applications and we use the Windows Task Scheduler as a tool. Migrate from Server 2012 Datacenter for Server 2016 Datacenter. I create the tasks in several ways, importing from ...

Task Scheduler starting OpenWith.exe in the background instead of default associated application

I have a custom type .acust which is associated with a homemade application. Scheduling works fine as long as it is "Run only when user is logged on" but doesn't work as a service "Run whether user is ...

Powershell script runs manually but not in Task Scheduler

I have this Powershell script and I want to schedule it run every 1 minute. So I created the task and schedule it to run every. If Right-Click->Run the scripts runs OK. But when it's scheduled it says ...

PowerShell script using Bits-Transfer does not work as Scheduled Task

I've tried utilizing other Q/A's such as Windows Server 2008 R2 PowerShell script runs manually, but not as a scheduled task but to no avail. Basically I've got a PoSh script (apparently that's the ...

Why isn't my scheduled task triggered reliably? [duplicate]

It's 19:01 now. This is what the Scheduled Tasks window on my Windows Server 2016 shows: As you can see, the highlighted task is: triggered to run at xx:15 every hour, is scheduled to run again at ...

WinServer2008R2 Task Scheduler - Define unique Argument in Action for only one Trigger

I have a windows console app that's launched via Task Scheduler (multiple triggers: 6am and 1pm). The Action for each starts a program. I want to add a 3rd trigger at some arbitrary time of day (e.g. ...

NTFS Grant temporary access

is it possible on Windows (including with a third party solution) to grant temporary access to a specific folder or files. This way the access would be automatically revoked after a certain amount of ...

Set “Allow task to be run on demand” from the command line?

On Windows 7, is it possible to set the "Allow task to be run on demand" attribute from the command line when creating a scheduled task to be run on another Windows 7 computer (actually 9 others in a ...

Divide a Backup Workload (Azure Storage)

We run on Azure services and I'm backing up their blob storage. There doesn't seem to be anything offered directly on Azure for accomplishing this. Storage accounts offer redundancy, but not backup. ...

Trigger a scheduled task “At task creation/modification” schtasks

I am creating a schedules task to run just before it's created and deleted after it runs. I am using the tool, schtasks to create the scheduled task, but i havent found the parameter to run the task "...

Trouble running this simple cronjob on the server every 24 hours. What is wrong? [duplicate]

Trying to run an 'R' script at 00:30 every day. The script is located in /home/username/Desktop/folder/runnow.r and which Rscript reveals that the absolute path to binary Rscript is /usr/bin/Rscript. ...

Force Administrator use in Windows Server

I have an application on Windows Server 2012 R2 that runs around the clock that shares information with a separate client application. The server app only saves all of its data to files when it is ...

Task scheduler backwards compatibility?

With what windows versions is a task exported in XML compatible with? For example, is a task created in windows 7 compatible with windows 10 / Windows Server 2003 with Windows Server 2008 and so on? I ...

How to create automatic scheduled PostgreSQL backup on Windows

Could you help me with my problem? I need to create scheduled WEEKLY backup dump on PostgreSQL. I need backup for example every Friday at 17-00 CET. And put it automatically on server and delete old ...

How to lock down local server account while permitting Remote Desktop in Windows 2008 SP2 and run scheduled task?

I have a user who needs to run one scheduled task on a Windows 2008 SP2 server. The user does not have domain access. So, I'm creating a local server account. This user needs to be able to RDP into ...

GPO not applied, gpresult /R OK — scheduled task not created

I've made a GPO that make a scheduled task. This scheduled task access to a network share to execute a powershell program that will delete some mails in outlook. Script is OK. It's a User GPO. When ...

Minimum delegation needed in AD for reading Scheduled tasks and Services info

I am trying to monitor Scheduled tasks and Services remotely(from a different domain) on windows servers (domain controllers) ; we are planning to implement a minimum required delegation model for ...

Windows Server 2012 Scheduled Task window title is taskeng.exe (but not always)

We have several scheduled tasks running console apps on a Windows Server 2012 machine. When many of these run, and the console command window appears, the window title is "taskeng.exe" but sometimes ...

powershell scheduled task always shows running even once completed

I have a PowerShell script set to run daily as a scheduled task, it is setup with an action of: Run Program PowerShell.exe Arguments: -executionpolicy bypass -file D:\Scripts\SomeScript.ps1 The ...

Task Scheduler stopped working - Windows Server 2008 R2

Yesterday I saw that after the 28th of last month the scheduled server tasks stopped working, even without displaying errors in scheduler task history. The tasks only would run batch files that would ...

How do you determine when a Windows Scheduled Task is completed?

I'm using a machine running Windows Server 2012. I have a scheduled task that indexes some files. This task takes around an hour or two to complete. However, I would like to know EXACTLY when it ...

Windows 2008 R2 Task Schduler is raising the following error “0x41301”

I have a console application which uses some SharePoint dll libraries, to execute a background jobs. now I can manually run the console application without any problem. but when I schedule its ...

Windows Task Scheduler Not Running On Some Machines When Locked

I create a bunch of window task scheduler events on multiple win7 & server 2012 machines. These machines automatically lock the user session after a period of time. Note, this is not logging out. ...

how to undo a GPO (Administrative Templates and Scheduled Tasks)

Windows Server 2012 R2 and Windows 10 Pro clients. Sooooo... I was experimenting with OUs early in my AD and I accidentally applied a GPO to my entire domain which shouldn't have been. I now need ...

Random scheduling of backups in BareOS

I've recently configured the laptops and workstations in my environment with BareOS. We are doing this as a preventative measure for data loss (part of a grander scheme of recommendations). With the ...

How to schedule a task to call a URL

I have an MVC app. I have a controller that when called runs a background process to query Active Directory and updates the database. http://myapp/BackgroundTask/Run I want to run this on a ...

Scheduled task runs with exit code 0, but powershell script is not always executed

The situation In our organisation I made a GPO that creates a scheduled task. This task triggers at logon of two user accounts. It executes a powershell script that changes the DNS servers for the ...

Run cron only if server is awake

To explain the question: my server (NAS) sleeps when it is not used and I want to keep it this way. However, when someone uploads a photo folder, it wakes up and processes the upload. I would like to ...

Task Schduler Log issues

I have been using task scheduler for scheduling batch jobs and I have enabled tasks history. However, I could not find any log file in C:\Windows\Tasks. So where could I find the log files for that?

Windows unforced (not forced, graceful) restart (reboot)

I wish to restart Windows 7 x64 by schedule, but the shutdown process needs not to be forced, but applications allowed to end normally. I have used scheduled task and system utility shutdown.exe with ...

Powershell task from Scheduled Tasks keeps running forever

I've created an scheduled task to call a webpage using PowerShell, but I don't know why it is not going to be ended after execution, and the status remains "Running". The action is "Start a program", ...

Failed to start up concurrent users module

I have a scheduled task that runs php CLI every few minutes. It runs ok, but very often it fails leaving a taskeng.exe window with the message Failed to start up concurrent users module! (and nothing ...

Issues with IMAP on Azure Virtual Machine (Windows server 2012)

I'm facing 2 issues within Windows Server 2012 (Microsoft Azure virtual machine): A very constant one , which is: from time to time, I'm unable to retrieve my emails from within Thunderbird email ...

Cannot schedule task to run as user on Server 2012 R2

I'm trying to create a scheduled task on Server 2012 R2 to run as a domain service account. I select "Run whether the user is logged on or not", and select the domain service account, click on OK, ...

Executing Scheduled Task after VM Migration (HyperV)

We are setting up multiple SQL Virtual Machines, spread over multiple nodes, so that they can auto migrate between nodes for load balancing, or for automatic failover during troubling times. These VMs ...

Running a Batch File from Task Scheduler With User credentials automatic fetch from directory

I'm trying to run a batch file on Windows 7 from the Task Scheduler. I can run the batch file fine if I run it from the command prompt and by storing user credentials in Task schedular. However, User'...

Task Scheduler Running on Scheduled Time

a task is scheduled to run once a day, let say at 7:00PM for example. Then this task is triggered prior to its scheduled run, e.g. this task has executed around 3:00PM on the same day. Will it run ...

disable scheduled task while running

We have an automated build to our Test server (Windows). Two console applications are part of the build. Those console applications are run every minute or so via a scheduled task. Often at the ...

schtasks.exe adding repeat every 10 min when not desired

I am trying to create a scheduled task from command line. I need the task to run everyday at 7:05pm and run for a max duration of 1 hour. Just once until the next day. Here is my command. schtasks....

Scheduled tasks - run as greyed out

I have two Windows Server 2003 machines. One for production and one for development/testing. The latter is not set up identically to the former. I'm attempting to create a scheduled task on the dev ...
Translating... 0%