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
15 views

"Schedule Query Error" appeared while creating Schedule query in Big Query

I have been facing problem while Scheduling my query to get daily update. Every time after scheduling my query when I click on saving that query "schedule query error" appears, after ...
0 votes
0 answers
10 views

GPO Create Scheduled task to run only on specific network

I created a scheduled task over GPO and this one is available on a test machine. On my computer i am able to specify a specific network connection to execute the task. On our server, I can only select ...
0 votes
1 answer
17 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 ...
  • 97
0 votes
0 answers
37 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 ...
1 vote
0 answers
24 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-...
  • 11
1 vote
0 answers
70 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 ...
0 votes
0 answers
11 views

Only Update Start In field when updating the scheduled task via command promt/powershell

Is it possible to only update the Start In (Optional) field (in GUI) when updating the task via command prompt. Is there like a flag for /tr to specify the executable file and then the location of the ...
0 votes
1 answer
30 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 ? ...
0 votes
2 answers
35 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 ...
  • 113
1 vote
1 answer
166 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 ...
3 votes
3 answers
431 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 ...
  • 6,357
0 votes
0 answers
66 views

Clustered Scheduled Task

I want to create a clustered schedule task in Windows Failover Clustering, as you know those tasks appear in Task Scheduler GUI under Failover Clustering folder. Is there any way to specify the folder ...
  • 1
1 vote
1 answer
501 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://imgur.com/a/...
0 votes
0 answers
194 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 '...
1 vote
0 answers
93 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 ...
  • 111
1 vote
1 answer
962 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 ...
  • 4,477
0 votes
0 answers
822 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 ...
0 votes
1 answer
1k 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 ...
  • 358
0 votes
1 answer
463 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 ...
  • 113
0 votes
1 answer
51 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 ...
  • 103
0 votes
0 answers
40 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 ...
  • 1
0 votes
0 answers
16 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 ...
5 votes
0 answers
695 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) ...
  • 2,380
0 votes
1 answer
588 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 ...
0 votes
0 answers
111 views

How do I log a particular user login event in my active directory

I have to log a particular "install" user logon in my Active directory. This user has the admin rights to install software and I need to understand where and who is using it. My first attemp ...
  • 1,232
0 votes
0 answers
580 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 ...
1 vote
1 answer
174 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 ...
  • 251
1 vote
0 answers
84 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"...
-1 votes
1 answer
68 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 ...
  • 99
1 vote
0 answers
190 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 ...
0 votes
1 answer
139 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:...
0 votes
0 answers
464 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 ...
  • 111
0 votes
2 answers
653 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 ...
1 vote
1 answer
221 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 ...
0 votes
1 answer
215 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": "...
  • 1
1 vote
1 answer
6k 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 ...
1 vote
1 answer
30 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 ...
1 vote
0 answers
27 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 ...
0 votes
2 answers
1k 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 ...
  • 3
1 vote
1 answer
458 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
  • 13
0 votes
1 answer
396 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.
  • 53
0 votes
1 answer
645 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 ...
  • 1
0 votes
1 answer
532 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 ...
1 vote
0 answers
128 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 ...
1 vote
1 answer
1k views

Powershell script to create scheduled Task with argument

i have this Script which is checking if a named service is running. In the actual case its checking for "RSCDsvc" service. if(!(Get-ScheduledTask | Where-Object {$_.TaskName -like "...
0 votes
1 answer
829 views

Looking to increase font and bring message to front in a pop-up message via task scheduler

I am creating a task in task scheduler with powreshell with the argument below. I'm making a pop up message come to a logged in user at 11 AM every day for two weeks. -WindowStyle hidden -Command &...
0 votes
0 answers
414 views

Scheduled Task (powershell script) causes 'audit failure' SeTcbPrivilege error in Event Viewer

On Windows Server 2012, I'm trying to create a Scheduled Task, that runs as a Domain user, that copies a file from a different server to the local server, then deletes the file locally if the date ...
0 votes
2 answers
2k views

How to run a VBA macro from the Task Scheduler in Windows Server 2016?

I have a VBA macro for extracting some data daily. The Macro doesn't have any interactive component like a Message Box, Custom Inputs, or Input Box. It doesn't expect any user input, it only downloads ...
0 votes
1 answer
1k views

Update Task Scheduler job password on multiple machines

Here's the deal: the company's policy is to update Service Account passwords every 180 days. Problem is, I'm using those service accounts on about 20 servers, running various jobs - so every 180 days, ...
1 vote
0 answers
236 views

Least Privileges for Windows Scheduled Tasks

I want to configure a Windows Server 2012 R2 and a Windows User (Active Directory Domain) in a way that the user has least privileges to access (read) a windows scheduled task on a remote windows ...

1
2 3 4 5
14