Questions tagged [task-scheduler]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
109 views

Windows 10 Task Scheduler run job but not launch new window

I have a Task Scheduler job that run a Batch file containing python script. When this job is activated either automatically or manually, the script runs correctly as I can see output file generated. ...
user1076097's user avatar
0 votes
1 answer
92 views

How to run a batch script completely and automatically on event such as sleep/hibernate and shutdown event using task scheduler?

I have written a batch script to perform some folder synchronizing task. I have scheduled the script to execute using task scheduler on events such as sleep/hibernate(kernel power event id 42) and ...
Harsh's user avatar
  • 1
0 votes
1 answer
96 views

How to have a task scheduler script running as network service access a network share securely?

Goal is to have a task scheduler task activate a PowerShell script at a certain time. We have had problems where the server restarts and the script doesn't run because I was not logged in as my domain ...
guildwarstiger2's user avatar
0 votes
0 answers
128 views

Windows Scheduled Task Does Not Work With Service Account

I have an odd problem with a scheduled task. The task is scheduled to run at 0202 every morning under a service account. The task is configured to run whether the user is logged on or not and the &...
BWFC's user avatar
  • 101
0 votes
1 answer
64 views

Running A Script From Parent Domain Server To Child Domain With Child Domain Credentials

I have written a Powershell script which checks the OS and does some security scans. The server we run this script from is a member of the Parent domain of my system. I need to run this script from ...
JukEboX's user avatar
  • 835
0 votes
0 answers
73 views

Open Excel from Powershell, running from Task scheduler

What I'm trying to do: I want a scheduled task to refresh Excel queries (ODBC), save them, and email them to clients. What I got so far: I have a PowerShell script that runs opens an Excel file and ...
Omri Liad's user avatar
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
0 answers
126 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
166 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
62 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
234 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
48 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
899 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
331 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
243 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
705 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
1k 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
826 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
768 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
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
0 votes
1 answer
130 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
781 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
828 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
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
1 vote
2 answers
608 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
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
1 vote
1 answer
10k 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
189 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
1 answer
6k 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
  • 517
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
4k 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
2 answers
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
411 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
74 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
913 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
560 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
644 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
96 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
12k 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
2k 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
2 3 4 5
7