Questions tagged [task-scheduler]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1
votes
1answer
154 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 ...
0
votes
2answers
50 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
2answers
55 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 ...
0
votes
0answers
26 views

Windows Server 2012 R2 - Task Scheduler - Multiple Instance Spawned

ServerOs: Windows Server 2012R2 I have a weird scenario occurring on the windows task scheduler where multiple instances trigger at the exact same time. This only occurs after a reboot and after ...
0
votes
1answer
36 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
0answers
46 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 ...
0
votes
0answers
39 views

Task schedule on AWS EC2 is not working

I setting a mission on schedule, and I choose administrator to run and setting "when loggin EC2" or "when ec2 start up", but they are doesn't work in every morning, it will close ...
0
votes
0answers
59 views

Windows Task Scheduler cmd commands for restarting a failed task

I used these commmands for creating a task scheduler which runs an application daily at specific time. SCHTASKS /CREATE /SC DAILY /TN "MyTasks\Notepad task" /TR "C:\Windows\System32\...
0
votes
2answers
537 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 ...
1
vote
1answer
52 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
0
votes
0answers
83 views

How to make "NT-AUTHORITY\INTERACTIVE" available to scheduled tasks WITHOUT any session or interactive logon?

I'm trying to find a workaround for a problem I have with VirtualBox. To make a long story short, starting headless VMs for a specially created restricted normal non-admin user virtual_box seems to ...
0
votes
1answer
64 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 ...
0
votes
0answers
107 views

Windows SCHTASKS /DU Indefinitely syntax in CMD?

My task from CMD is: schtasks /create /tn "Task" /tr '"C:\Task.bat"' /sc ONCE /sd 25/03/2021 /st 20:57 /ri 1 /rl highest Which syntax should I use for the Indefinitely option? /DU ...
0
votes
0answers
162 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
0answers
47 views

Script to search for specific task in scheduler and delete this task

I am quite new in this area and I am bit lost but when I have looked to: https://serverfault.com/questions/604673/how-to-print-out-information-about-task-scheduler-in-powershell-script ,this was ...
0
votes
1answer
998 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 ...
1
vote
1answer
433 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
0answers
8 views

AWS Win Tasks aren't running after server restart via Lambda

I have coded a simple task scedule that turns the AWS Windows server off and a simple Lambda code to turn the stopped instaces on, see code: import time import json import boto3 def lambda_handler(...
1
vote
1answer
236 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
0answers
37 views

Missing file permissions only when started with Windows Task Scheduler

I have a bat files that launched a java JVM to allow another server to run tasks on the windows box. Currently after each reboot I've had to log-in as a specific user and run the statup.bat. To make ...
0
votes
2answers
1k 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
1answer
304 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 ...
1
vote
1answer
36 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
0answers
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
1answer
226 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 ...
1
vote
0answers
47 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/...
3
votes
1answer
784 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
0answers
390 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
2answers
61 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 ...
1
vote
0answers
249 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
0answers
133 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
0answers
33 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. ...
3
votes
1answer
6k 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
1answer
2k 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 ...
1
vote
1answer
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 ...
1
vote
1answer
379 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 ...
0
votes
1answer
338 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
1answer
2k 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 ...
1
vote
0answers
246 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 ...
0
votes
1answer
338 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
1answer
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 ...
2
votes
3answers
298 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
1answer
27 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
1answer
255 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
1answer
1k 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
2answers
2k 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 ...
0
votes
0answers
770 views

Unable to create tasks in Windows task scheduler - Permission denied

I have few servers facing same problem- I am unable to create task scheduler jobs. The problem seems to be exactly same as this and this. However, I have checked group policies, and made sure that ...
0
votes
0answers
1k views

Scheduled Tasks Triggering When Not Scheduled

Server environment: Windows Server 2012 R2 Hello, I've been experiencing a strange issue on one of the servers I administrate and was hoping someone could point me in the direction of some answers. ...
5
votes
1answer
6k views

Permissions or ACL for Scheduled Tasks

I am on a Windows Server 2012 R2 and the logged in account is a member of Administrators. This is a screen shot of Task Scheduler: I have tasks in folders another administrator created: RPA and Test....
0
votes
1answer
487 views

Trigger task after DataCollection with perfmon

In performance Monitor, I'm looking for a way to compress my data collection (*.blg file) when the collection has reached the stop condition. Looking at the "Data Collector Sets" properties there ...

1
2 3 4 5
7