Questions tagged [task-scheduler]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
237 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
0 answers
43 views

Windows Server: Email Notification when a user executes an exe?

I need some way to send and email notification when a user logs in to a remote desktop and executes a exe , i need to send an email that exe was run... Is this possible in powershell ? Should i add ...
abmv's user avatar
  • 133
0 votes
1 answer
48 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
23 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
0 votes
1 answer
57 views

Start exe as current logged in user

i am creating exe shortcut on Windows startup folder while installing application. It was automatically starts on Windows start and restart. I want check on every 5 mins whether the exe running or not....
Hisanth's user avatar
0 votes
1 answer
29 views

Program started with Task Scheduler could not open my Printer

I have a C# program that executes some commands that generates a pdf and print it to a printer. The printer is hosted in a print server, so the way I accessed the printer is through my app config. (\...
Kraust123's user avatar
0 votes
1 answer
521 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
173 views

Issue with tasks on Windows Server Task Scheduler set to fire every minute

Windows Server 2019 Standard. I set some tasks on Task Scheduler to run every minute. They apparently worked fine, but I found out that sometimes there are "holes" in the executions, even of ...
Andrea Pasianot's user avatar
0 votes
0 answers
175 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
23 views

Setting up Rhel cluster for high perfomance and load balancing

I am having 7 servers with RHEL, I want to setup a cluster for those. We need cluster for: 1: high Perfomance 2: load balancing I have NAS for shared storage. I want to setup 1 server as visulization ...
biplab 's user avatar
0 votes
0 answers
21 views

Linux Scheduling Affinity when nCores == nPids

imagine you create a cgroup that isolates n logical cores from the general Linux scheduler. then one at a time, you create and run m processes that together comprise n threads. so # of process threads ...
Gukki5's user avatar
  • 101
0 votes
0 answers
497 views

How to import a PFX certificate to LocalMachine/Personal via GPO

I would like to deploy P12 certificate (for OpenVPN) to Windws Certificate Store, to be more precise to LocalMachine\Personal. The reason is the certificate will be protected at least by local admin ...
aldomoro's user avatar
1 vote
0 answers
888 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 ...
jasonwardenburg's user avatar
1 vote
1 answer
639 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
2 votes
2 answers
3k 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 ...
Canislupus's user avatar
1 vote
1 answer
738 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
1 vote
1 answer
1k 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 ...
Philip's user avatar
  • 73
0 votes
1 answer
2k 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
0 votes
1 answer
106 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
1k 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 votes
1 answer
658 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 ...
amyassin's user avatar
  • 337
0 votes
2 answers
731 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 ...
Divyashri Rao's user avatar
0 votes
2 answers
931 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
1 vote
2 answers
574 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 ...
Zoran Jankov's user avatar
0 votes
0 answers
1k 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 ...
Matt's user avatar
  • 123
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
1k 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
1 vote
1 answer
7k 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 ...
ITnewbie's user avatar
  • 171
0 votes
0 answers
187 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 ...
Bruce Van Horn's user avatar
0 votes
2 answers
5k 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 ...
culter's user avatar
  • 507
1 vote
1 answer
2k 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 "...
Juggybash's user avatar
1 vote
1 answer
2k 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 ...
RobC_CTL's user avatar
0 votes
2 answers
3k 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 ...
Federico Navarrete's user avatar
0 votes
1 answer
2k 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 ...
Vaito's user avatar
  • 21
1 vote
1 answer
374 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, ...
Prefixas's user avatar
0 votes
1 answer
2k 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 ...
test test's user avatar
0 votes
1 answer
1k 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 ...
quant's user avatar
  • 111
1 vote
0 answers
72 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/...
febry's user avatar
  • 73
4 votes
1 answer
2k 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 ...
Julien MERICE's user avatar
1 vote
0 answers
855 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 ...
Kieren Johnstone's user avatar
0 votes
2 answers
431 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 ...
Lapsio's user avatar
  • 363
0 votes
0 answers
573 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 ...
Paul Stearns's user avatar
1 vote
0 answers
74 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. ...
Hannes's user avatar
  • 51
4 votes
1 answer
11k 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 ...
user562888's user avatar
0 votes
1 answer
4k 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 ...
Ωmega's user avatar
  • 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 ...
asp316's user avatar
  • 133
1 vote
1 answer
560 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 ...
iveqy's user avatar
  • 111
0 votes
1 answer
663 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 ...
Blue_Monkey32's user avatar
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 ...
Cameron's user avatar
  • 21
1 vote
0 answers
575 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 ...
ShruS's user avatar
  • 11

1
2 3 4 5
7