Questions tagged [task-scheduler]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
18 views

Task Scheduler At System Startup not working like it should

I created a basic task scheduler to close a specific service and re-open it 5 second later as for some reason on boot the app I use it does not find it until I restart the service. I was hoping it ...
  • 1
0 votes
0 answers
27 views

php artisan schedule:run running twice by root and ubuntu user?

we are having a problem that kernel commands running twice. I checked if the schedule runs the command and if it exists more than once. I check with this command ps aux | grep "artisan schedule:...
1 vote
0 answers
129 views

problems with win server 2019 Task Scheduler -> batch file -> python script as service account

I have had a ton of problems trying to set up some automated tasks that execute a batch file which in turn run python scripts. All of these tasks run fine when they are run under my username and I am ...
1 vote
1 answer
154 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 ...
0 votes
1 answer
68 views

Hide Task Scheduler Error message

I have a scheduled task that runs a bat file silently on the local computer. When the file is in place everything works fine, but if it is missing task scheduler will throw up an error that bothers ...
  • 11
2 votes
2 answers
528 views

How does the random delay option work?

I create a scheduled task that runs every 5 hours and enabled the "Delay task for up to (random delay)" option for 2 hours. A found a few problems with this but before I start making changes ...
0 votes
0 answers
61 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
486 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
1 answer
511 views

Using Set-MpPreference to schedule Windows full and quick scans doesn't work

On a Windows 10 machine, I have been trying to set the time of virus scans using the following PowerShell commands. Set-MpPreference -ScanParameters FullScan Set-MpPreference -ScanScheduleDay Monday ...
  • 63
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
50 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
556 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 votes
1 answer
315 views

Why PSFTP script is failing when ran as system? [closed]

I have a Windows cmd batch file that should retrieve listing of files that are on an FTP server via sFTP using PuTTY PSFTP exe and use that for further processing. The cmd is: echo ls | psftp -l ...
  • 337
0 votes
2 answers
391 views

Is it possible to call one Windows scheduled task from another Windows scheduled task?

I have created two independent task Windows scheduled task's: First task running under system-context (needs to run under system-context as application needs to be installed silently) checks if ...
0 votes
2 answers
645 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
2 answers
305 views

Prevent users from uploading files when they are on external networks

Is there a way to prevent users from uploading files when they are on external networks? The reason for this is internal security and protection of company confidential documents. They should be able ...
0 votes
0 answers
533 views

Windows Scheduler fails with error 2147942402

A search about the error message implies that it is due to missing resources, but the file I am trying to execute exists at the correct location. I am currently running it with an Admin account. If I ...
  • 123
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
453 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
1 vote
1 answer
2k views

Windows 10 Task Scheduler run PowerShell with no pop-up window

I want to set up a task scheduler to run a PowerShell script every 1 hour with no prompt windows pop-up. Here is the command I tried: schtasks /create /sc hourly /tn $Task-Name /st $ScheduleTime ` /tr ...
  • 161
0 votes
0 answers
181 views

automated http post with python 3 doesn't work unless user logs in

I have a script written in python 3 that is designed to send a file to our web server via HTTP POST. It's running on a Windows VM on my customer's infrastructure. I have compiled the python script ...
0 votes
1 answer
3k views

All tasks in Task scheduler are going to queued state when triggered

recently we have a strange problem with scheduled tasks on Windows server 2019 with RDS role installed. 6 servers were restored from 3 months old backup, joined into the AD domain again and working as ...
  • 507
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 "...
1 vote
1 answer
893 views

Using Event Filter in Task Scheduler looking for specific keywords

I hope you can help, sometimes a backup task will fail, usually a transient VSS error, and re-running the backup will normally complete successfully. What I am trying to do is use the event filter ...
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
866 views

DHCP Scope Option Sync Scheduled Task

I have two Server 2019 domain controllers with DHCP services running in load-balance mode, which synchronizes leases but not scope options or reservations unless instructed to do so via PowerShell. So ...
  • 11
1 vote
1 answer
184 views

Task scheduler Event trigger on user mail field change

How I could trigger Task Scheduler event when user mail field changed (or any custom attribute) in Active Directory? We want to run Powershell script when user mail field changes. Event ID: 4738, ...
0 votes
1 answer
1k views

My windows Task Schdulrer is raising this error "0xE0434352"

I have windows server 2012 R2, and i have some tasks inside Windows Task scheduler which use to work well, but yesterday they start to return this error 0xE0434352, as follow:- I checked the Event ...
0 votes
1 answer
586 views

Windows Scheduler: Task Start Failed

I'm trying to learn about task scheduling in Windows 10, so I set myself the task of trying to schedule a script that writes a blank file called test.txt to the user's home directory. I did this by ...
  • 111
1 vote
0 answers
62 views

Task scheduler can't running after update in same day

i have one task scheduler with 2 action. <?xml version="1.0" encoding="UTF-16"?> <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/...
  • 73
4 votes
1 answer
1k views

Tasks Scheduler Windows High Availability

What is the best way to put in place «tasks scheduler» with high availability under Windows? Currently, the tasks are planned on a single server, which is a problem when the server reboot (for many ...
1 vote
0 answers
653 views

Task Scheduler "On Remote Disconnect from any user session" triggers when connecting, too

I have two scheduled tasks, one with the "On connection to user session" type, any user, connection from remote computer. That triggers when an RDC connection is established. The other is "On ...
0 votes
2 answers
262 views

How to bind static affinity for *all* Linux processes at startup?

I have one single-threaded process on server that I'd like to statically bind to one CPU core and give it all available computing power all the time (it's real-time process that is heavily affected by ...
  • 363
1 vote
0 answers
588 views

Scheduled task on VM only works interactively/manually

I am trying to get a scheduled task to run on a Windows Server 2012 R2 virtual machine. When I RDP in and test the task, everything works manually. The task is scheduled to run nightly and it appears ...
0 votes
0 answers
383 views

How can I run a scheduled task on domain controller whenever a domain user logs into the domain?

I need to log domain user logins & logouts to an Oracle database. Not all computers have Oracle drivers, but one of the domain controllers does. So I have created a script which writes the ...
1 vote
0 answers
41 views

How to get details of the event that triggered a task

A service that we are using writes to the event log when issues occur. I have successfully created a task from the event source and id to run a program that notifies the admins. So far, so good. ...
  • 51
3 votes
1 answer
9k views

Windows 10 run an interactive scheduled task to run for any interactive user

I want to setup a windows 10 task scheduler to run a GUI based tasked interactively for any logged on user. Right now we have to explicitly specify the user name, so the task can only be run for this ...
0 votes
1 answer
3k views

Task Scheduler failed ... Error Value 2147942402

I tried to schedule a task by schtasks /create /tn Test /sc minute /mo 1 /tr "del /f \"%UserProfile%\path\file\"" ...however the Scheduler always ends up with the following type of error: Task ...
  • 103
1 vote
1 answer
1k views

Scheduled task runs twice after DST

We have a process in Task Scheduler that runs at 8:10am on certain days of the month. This has worked fine for years. We u/ged to Server 2019. Then, after this year's DST switch over and server ...
  • 133
1 vote
1 answer
485 views

How to change linux default scheduling method

I've a jenkins server and running a lot of CPU bound compilations. I want to change the scheduler from SCHED_NORMAL to SCHED_BATCH. I know it can be done with chrt but I want the system to use it by ...
  • 111
0 votes
1 answer
590 views

Creating tasks for task scheduler

We use Azure-AD with Intune at work and I was wondering if it is possible to utilise it to set task scheduler tasks. Checking the CSP library did not prove helpful. I know I can utilise power-shell ...
1 vote
1 answer
3k views

Windows Server 2019 scheduled tasks must be in future

As a follow on to the Windows Server 016 scheduled task must be in future, can anyone confirm if the same quirk exists in Windows Server 2019? When I was tidying up the Task Scheduler Library with ...
  • 21
1 vote
0 answers
390 views

Do I need to have identical user account on different domains to run a net use command via batch script?

I have a Task Scheduler task that runs a batch file which copies a file from server1 to server2 on a different domain. Note:The scheduled task is running on Domain_A using user accounts created to ...
  • 11
0 votes
1 answer
375 views

Windows 2012 server, created task not running

Created a task o windows 2012 Server, to run a *.bat file. Set up to run at startup and repeat task every 15 minutes. @ECHO OFF REM -------------------------------------------------------------------...
5 votes
1 answer
2k views

Task Scheduler - Task Idle Conditions

Again me with the Task Scheduler. Microsoft - Task Idle Conditions Under Windows 7, tasks behave according to the rules stated in the link ... tested and it works. Under Windows 10 (Pro v1809 with ...
  • 281
2 votes
3 answers
354 views

Windows Task Scheduler to click link in access form

I have a label on an Access form. This is a clickable label which will then run an event procedure. This event extracts data and puts it into an excel sheet. A Client has asked for this to be an ...
1 vote
1 answer
44 views

Task under SYSTEM won't run Win Srv 2k8R2

My company has a software that updates our installers on clients' servers. During the setup, a environment variable is created along with a task with the following lines: Variable: setx ccloud "C:\...
1 vote
1 answer
313 views

Windows task scheduler - can't get PS script to get-eventlog from servers over network, only local server

In a 2008 R2 server, I have a Windows task that executes a PowerShell script that uses Get-EventLog to get Windows event logs from the local server and also from servers over the network. When running ...
1 vote
1 answer
2k views

How to run a Windows Task that executes a PowerShell script as the Windows Local Service account

On a 2008 R2 server, I have a Windows task that executes a PowerShell script. It works fine when set in Task Scheduler to execute as an Admin account, but I'd like to set it to execute as the Windows ...
2 votes
2 answers
3k views

Unable to see Scheduled Task even with access rights to SYSTEM32\Tasks

I have a follow-up question to this. I have a task folder RPA with two tasks as follows: I created these two tasks myself using the Task Scheduler UI (as in above image). My trouble is I am now ...

1
2 3 4 5
7