Questions tagged [scheduled-task]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
45 views

Determine which trigger was triggered with task execution in Windows 10 Task Scheduler

I wonder if its possible to figure out which trigger was triggered when my own task was scheduled in the Windows 10 task scheduler? I would like to debug the behaviour of the task scheduling in my ...
Sinipelto's user avatar
0 votes
0 answers
41 views

Scheduled task not ending before new run

I have a scheduled task on Windows Server 2019 that is a web service. I'm suspecting that there is some kind of resource leak as performance degrades after a couple of days and restart clears it up. ...
Ching Liu's user avatar
  • 101
0 votes
1 answer
2k views

Task scheduler - run whether user is logged on or not

I am trying to run task scheduler on my local pc (windows 10), I have set it up to run a exe file stored on my C drive daily, but it doesn't run when I set it to "run whether user is logged on or ...
Steve's user avatar
  • 3
0 votes
1 answer
187 views

My scheduled task to run MpCmdRun.exe works with one set of flags but not another (fails with 0x2 "File not found")

I have a GPO that gives my Win10 workstations two scheduled tasks. Task one runs C:\Program Files\Windows Defender\MpCmdRun.exe -removedefinitions -dynamicsignatures Task two runs C:\Program Files\...
The ITea Guy's user avatar
0 votes
0 answers
69 views

Windows Defender Anti-Malware / Anti-Virus Does Not Reliably Update

Problem: Windows Domain environment with Windows 10 workstations that will not reliably update Windows Defender. I use ACAS to scan my environment weekly, and every week at least a few of these ...
The ITea Guy's user avatar
1 vote
1 answer
171 views

Scheduled task to upload a file to S3 with PowerShell ignores user profile settings

I am using Windows task scheduler with a user that has an AWS profile configuration under C:\Users<username>.aws\configuration (content below) [default] s3 = max_concurrent_requests = 300 ...
user2629636's user avatar
-2 votes
1 answer
91 views

Schedule task in Windows 2012 R2 after all services are up

We have a Windows 2012 R2 with some services configured as delayed start due to having dependencies on other services, but not being shown in the corresponding tab. If such services are not configured ...
alvaroc's user avatar
  • 119
1 vote
1 answer
471 views

Practice of high frequency scheduled Ansible playbook runs

I'm fairly new to administrating servers with configuration managers such as Ansible. I plan on running playbooks automatically on a schedule (via something like Ansible Semaphore, or even just Cron) ...
corvus-migratorius's user avatar
0 votes
1 answer
960 views

Output file is empty when running powershell script from Task Scheduler

I have a powershell script, that write http response body to output. When I run it from command line like this, it writes the response to Emails.log file powershell "./InvokeMyApi.ps1 /api/emails/...
Liero's user avatar
  • 101
0 votes
0 answers
258 views

Scheduled task with powershell won't restart when the script fails

Scenario I want to invoke a rest api on daily basis with some retry mechanism in case the rest api is not available Problem Even when the action exits with a non zero exit code, it is not restarted. ...
Liero's user avatar
  • 101
0 votes
0 answers
782 views

Scheduled Task not being deployed via GPO

I have created a FailedLogon task in GPO similar to this https://woshub.com/scheduled-task-gpo/ The task gets deployed if I run it as SYSTEM. But when trying to run it under a service account ...
imaxt's user avatar
  • 1
0 votes
1 answer
687 views

Windows scheduler : will same process instances concurrently run across different Tasks?

I have configured Windows Scheduler to not run many instances of my application : But i am not sure about how windows will detect many instance. I mean i have an executable that deeply change its ...
Skary's user avatar
  • 97
0 votes
0 answers
277 views

Google cloud VM instance schedules do nothing

I have an issue with my google cloud VMs: when I try to set a scheduled startup or stop for them via google cloud's "instance schedules" nothing happens at the specified time. I will walk ...
user9102437's user avatar
1 vote
0 answers
154 views

ReFS scheduled tasks?

Does ReFS do any kind of automated tasks (reindex, consistency check, something like that) and if so, what/where/when? I have a Server 2019 system that locks up every Saturday at midnight due to ReFS-...
DB_2022's user avatar
  • 31
1 vote
0 answers
224 views

Syntax for creating SCHTASK.EXE tasks to run batch files that take parameters

I have a set of older batch files that scheduled the running of some maintenance tasks for a database that I look after. They used the AT command. The database has been moved to Windows server 2016 ...
Jonathan Elkins's user avatar
0 votes
1 answer
390 views

how to stop scheduled auto reboots on Ubuntu

i installed a encrypted script on my server. all works as expected but there is a scheduled reboot after installing that script. server auto reboots at a specific time everyday. how can i stop this ? ...
Kelum Isuranga's user avatar
0 votes
2 answers
149 views

Windows Server 2012 scheduled task errors running program that runs fine when run at command line

I have a command line program (that I wrote) that I can run on Windows Server 2012. It connects to the MS SQL Database server on a different server which has a linked server to a Access database. It ...
Paul's user avatar
  • 113
1 vote
1 answer
866 views

Can you copy a file to share with scheduled task not logged in?

On Server 2016, I'm trying to copy a file to a synology drive. I want the scheduled task to perform this task, without me being logged in. The network path, requires a username and password. NET USE I ...
user1627836's user avatar
3 votes
3 answers
2k views

Why does a scheduled task access the database as anonymous (vs configured acct)?

**Update: I added a much shortened script which generates the same issue. See the bottom of this port: I have a PowerShell script that runs a SQL query against a MSSQL server (different server). The ...
uSlackr's user avatar
  • 6,432
1 vote
1 answer
774 views

Windows 2012 Server - Task not running with same setting as others which run perfectly

I have a Task created on Windows 2012 Server, that is set to run when I login, and it does just that, when I login it starts running, and if I want to I can run it manually: https://i.stack.imgur.com/...
questionador's user avatar
0 votes
0 answers
355 views

run task in the background

i have powershell script that check if the service is up and of not it starts it up, $ServiceName = 'mapguideserver3.1' $arrService = Get-Service -Name $ServiceName while ($arrService.Status -ne '...
Shay Rahamim's user avatar
1 vote
0 answers
309 views

Scheduled tasks created with schtasks are interactive only. How do I create a task on a server that will always run?

I have a web app deployed with an azure pipeline. Part of the deployment is to create scheduled tasks with schtasks. The line of DOS that creates my task is as follows. schtasks /create /sc minute /mo ...
bbsimonbb's user avatar
  • 111
1 vote
1 answer
4k views

How to delete a Scheduled task folder with PowerShell?

I need to delete a scheduled task folders on a lot of machines, ideally with PowerShell. I couldn't find anything on how to do that - it seems like the documentation covers everyting but folders. Did ...
bjoster's user avatar
  • 4,897
0 votes
1 answer
2k views

Group Policy scheduled task for running .bat file applies, but task does not create

I am trying to add a scheduled task to run a batch file that updates / installs software. I created a GPO to create the task, using these settings: Task Settings Task settings 2 Task settings 3 For ...
Dylan Skyler Miller's user avatar
0 votes
1 answer
3k views

Service Account Permissions for Task Scheduler READ

I have a PowerShell script I've written to do a comparison of Scheduled Tasks between two nodes of our application server cluster. It uses this code to query the tasks from a given server... function ...
eidylon's user avatar
  • 358
1 vote
1 answer
1k views

How to catch item that triggers a trigger in Task Scheduler?

I want to write a powershell script that get executed whenever a new item/eventlog entry in the eventlog 'Microsoft-Windows-TerminalServices-Gateway/Operational' gets written. It is easy to create a ...
Chris9834's user avatar
  • 181
0 votes
1 answer
134 views

Alternate a task Windows Task Scheduler

I'm looking for a good way to alternate a task within the Windows Task Scheduler. One Saturday, run Task A. Then the next Saturday, run Task B. Then repeat. Any suggestions on how to accomplish that ...
Aaron's user avatar
  • 103
0 votes
0 answers
137 views

Best Method For Clearing User Data On Shared Windows Device?

I have had a client request that I setup a user account on a Windows device that will clear all user profile data once the account has been logged off. The computer is a shared device that will be ...
Smithy's user avatar
  • 1
0 votes
0 answers
20 views

Which server specs to look for for a Scheduler in a data stack?

I'm in the process of building a data stack for a small company : the choice has been made to have a UNIX server running as a "Scheduler". The goal of this scheduler is just to extract data ...
Aradyan's user avatar
5 votes
0 answers
1k views

Windows Server sometimes has wrong date

Having a Windows Server 2016 (hosted at Amazon AWS EC2) that is running successfully for years. Since some month I'm experiencing that the Scheduled Tasks (e.g. a task that is configured to run daily) ...
Uwe Keim's user avatar
  • 2,440
0 votes
2 answers
2k views

How to automatically save and force update of a dynamic DNS on pfSense?

Everytime the IP address of my pfSense changes i need to manually log-in to the panel, go to Services > Dynamic DNS > Actions [Edit] > ♻ Save & Force Update Please, how do i do this using ...
Raul Chiarella's user avatar
0 votes
0 answers
2k views

Task Scheduler jobs run with expired password user account, but not with locked user account

When setting up a task in task scheduler, our practice for over a decade is that the user who sets it up puts their domain account in the "Security Options -> When running the task, use the ...
Ben Butzer's user avatar
1 vote
1 answer
603 views

scheduled task to logon to remote windows 10 [closed]

I need to start some services on another Win10 machine every day which is not available as Service, and requires that someone logs on to the windows machine. The only way to do this is to login to ...
Krunal's user avatar
  • 231
1 vote
0 answers
160 views

Task Scheduler GPO for purging files does not apply due to OneDrive

I am trying to create a task with the following PS script: $locations="$env:userprofile\Desktop\New folder (2)","$env:userprofile\Desktop\New folder (3)" $Daysback = "-30"...
Stefanie Gergova's user avatar
-1 votes
1 answer
82 views

Scheduled startup on Win10 Dell Inspiron?

I want my Dell Inspiron 15 3567 laptop to automatically switch on every morning at a particular time. I have been trying to work it out, opened my laptop's BIOS settings, but couldn't find anything ...
lazarea's user avatar
  • 99
1 vote
0 answers
324 views

How to close SFTP session with Azure logic app after task is finished?

We have an Azure logic app that checks every five minutes for files on an external SFTP server. Sometimes the requests fail. The external party indicated that this might be because the SFTP sessions ...
amigobrewbrew's user avatar
0 votes
1 answer
236 views

Windows scheduled task - task with cmd script runs, but .NET console app doesn't

I'm creating Windows scheduled tasks in a Docker container with Powershell. As a test, I've got a simple batch file which writes the current date/time to a text file once an hour. This works perfectly:...
user873725's user avatar
0 votes
0 answers
1k views

Executing a PowerShell Script With Spaces in Arguments via Task Scheduler on Windows Server 2012

I'm attempting to create a scheduled task on Windows Server 2012 that will execute a powershell script that will create an archive of a specific directory once per day. The arguments to execute the ...
Daniel's user avatar
  • 119
0 votes
2 answers
1k views

Windows 10 Run Task On Any Domain User Login and then Delete Task

I have a scenario where I need a non-domain joined Windows 10 to reboot after it gets joined to a domain and there's a logon of a domain user - any domain user, not a specific one. I'd also need this ...
davidburtton's user avatar
2 votes
1 answer
490 views

Is it possible to use both `After=` and `Before=` options towards the same unit (service) together in systemd service?

The Type=oneshot unit A.service is started hourly by A.timer and it Wants=B.service, but runs Before=B.service. Unit B.service is also Type=oneshot. The requirement here is that their processes ...
Alexander Shukaev's user avatar
0 votes
1 answer
286 views

Google Jobs: Quota exceeded for the number of App Engine Cron jobs

Yesterday at 8:00 am, I had a quota of 250 app-engine jobs. At 9:00 am, I deployed a yaml file with 280 jobs, I got this error: "error": { "code": 429, "message": "...
Yoan's user avatar
  • 1
0 votes
2 answers
13k views

Create a Windows Schedule Task via GPO to run as specified user

I am trying to create a Scheduled Task via Group Policy (Computer Configuration\Preferences\Control Panel Settings\Scheduled Tasks), to run as a specified domain service account. However, when Group ...
user3580480's user avatar
1 vote
1 answer
38 views

How does update management works for virtual machines in Azure?

We defined the execution's time of the update management with a runbook for 6 hours. But I would like to know : Does update management work asynchronously (every virtual machines are getting updated ...
Elias Arellano's user avatar
1 vote
0 answers
34 views

Unable to modify Scheduled Task Windows 2008 SP2

Issue: The server is a VM on vCenter, OS is Windows 2008 SP2. There is no performance issue. Everything is fine except, unable to modify Scheduled Task. We can create a new Scheduled task, but once ...
Biju Menon's user avatar
0 votes
2 answers
2k views

Server 2019 custom PowerShell script is getting queued (Code 325)

I'm a newbie to Windows Server so I'm not sure if I'm doing something wrong, or if the server is at fault here. I come from a Linux background and I wanted to make something similar to a cronjob. In ...
Alb's user avatar
  • 3
1 vote
1 answer
2k views

Task scheduler history on who enabled a task

We have several deactivated scheduled tasks and someone activated one. Is there a way to see who did that? There is no such information on the task's history. It is on windows server 2012
hunB's user avatar
  • 113
0 votes
1 answer
1k views

Task scheduler job not terminating after specified timeout

I have updated the "stop the task if it runs longer than" to 1 min. But the task job won't terminate after a minute. What am I missing here? And the job doesn't have any triggers configured.
Uday's user avatar
  • 63
0 votes
1 answer
1k views

How to use gMSA account with Task Scheduler and Powershell to manage DHCP filters

I am struggling to keep DHCP filters in sync between multiple DHCP servers, each of them is running on a domain controller. I wrote a simple script to get filters from master DHCP server and push them ...
wilk's user avatar
  • 1
0 votes
1 answer
1k views

Windows Server: scheduled backup not visible in Scheduled Tasks?

I have set Windows Server 2016 Standard to perform a local backup to a usb drive on a nightly basis at 9pm. The last several runs failed because the destination was disconnected. I've since ...
matt wilkie's user avatar
1 vote
0 answers
232 views

OpenSSH Windows server 2012 : SCP process randomally working : with passowrd authentication

I have created a openSSH SCP bat script and scheduled task to run as SYSTEM. I use publickkey authentication method. For that converted a private key of winscp to openSSH key using putty key gen and ...
TAMIL VED's user avatar

1
2 3 4 5
14