A scheduled-task means the launch of a program or script at predefined times or after specified time intervals.
Questions tagged [scheduled-task]
662 questions
0
votes
1 answer
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\Windows Defender\MpCmdRun.exe…

The ITea Guy
- 321
- 1
- 6
- 16
0
votes
0 answers
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 workstations will report that they have not updated…

The ITea Guy
- 321
- 1
- 6
- 16
0
votes
1 answer
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/SendEmails" > Emails.log
However, when I invoke it…

Liero
- 101
- 1
0
votes
0 answers
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.
Task Scheduler successfully completed task…

Liero
- 101
- 1
0
votes
0 answers
Scheduled Task not being deployed via GPO
I have created a FailedLogon task in GPO similar to this https://woshub.com/scheduled-task-gpo/
The task gets deployed if I run it as SYSTEM. But when trying to run it under a service account srv_tasks it doesn't schedule the task. And in the event…

imaxt
- 1
- 1
0
votes
0 answers
"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 searching for all the possibilities for this, I found below…
0
votes
0 answers
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 Any connection. Is there another possibility to…
0
votes
1 answer
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 bheaviour accordingly to command line. For that…

Skary
- 97
- 4
0
votes
0 answers
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 you through what I have done to try to make this work.
I have…

user9102437
- 101
0
votes
1 answer
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 ? i can't read the scripty since it is…
0
votes
2 answers
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 works fine when I just run this program from the…

Paul
- 113
- 2
0
votes
0 answers
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 'Running')
{
Start-Service $ServiceName
…

Shay Rahamim
- 3
- 2
0
votes
1 answer
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 one of them, I am using item level targeting to…
0
votes
1 answer
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 getTasks($server) {
return Get-ScheduledTask…

eidylon
- 358
- 1
- 7
- 20
0
votes
1 answer
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 scheduler task that triggers whenever a new…

Chris9834
- 151
- 1
- 11