Questions tagged [scheduled-task]

A scheduled-task means the launch of a program or script at predefined times or after specified time intervals.

662 questions
3
votes
0 answers

Perfmon counters are not restarted after reboot

The question has a long history, and I went through all previous questions (1, 2) but neither of them answers the question why the standard way doesn't work? If I don't want to use logman how can I schedule automatic restart of counters/data…
Suncatcher
  • 594
  • 2
  • 7
  • 22
3
votes
0 answers

Task scheduler startup bat script not running on AWS EC2

I have an EC2 WindowsServer2016 image with a scala project on it. I want it to start when I spin up an instance without me having to log in or do anything. I have a .bat script with the following: git pull sbt run In the TaskScheduler I created a…
3
votes
0 answers

Do I need to disable TIWorker.exe and respective TaskSheduler task in Windows Server 2016

We had previously been disabling the following tasks in our AWS instances to keep our load balancer from killing them when these tasks tried to run. TIWORKER.exe was the large colpurt for our 2012R2 servers. After taking a look at the the…
3
votes
2 answers

Windows task scheduler email notification?

I am using the Windows Task Scheduler to run a executable that returns 0 when it runs successfully. However, I would like an email notification if (1)the task fails to run or (2)the return code if anything other than 0. Is this something the…
rafael
  • 161
  • 1
  • 2
  • 6
3
votes
1 answer

Windows Task Scheduler deletes batch file upon running it

I have an odd problem that has started happening with Task Scheduler on Windows Server 2012 R2. A bunch of scheduled tasks all have this same problem. I checked on it a few weeks ago and it was fine, but now it has started happening on several…
Jez
  • 1,393
  • 2
  • 12
  • 24
3
votes
1 answer

Windows Server 2008 scheduled task only works with "Run only when user is logged on"

I have a scheduled task that is set to run an R script by launching Rscript.exe and the file of interest. This task completes successfully when I run it with the option "Run only when user is logged on". I need to schedule the task to run without…
Hack-R
  • 295
  • 3
  • 12
3
votes
2 answers

Scheduled task runs with exit code 0, but powershell script is not always executed

The situation In our organisation I made a GPO that creates a scheduled task. This task triggers at logon of two user accounts. It executes a powershell script that changes the DNS servers for the network connection. (To block some websites for…
Omnomnomnom
  • 659
  • 3
  • 10
  • 22
3
votes
3 answers

Scheduling a Task to Run Indefinitely

I suppose what I want is closer to a service, but I'd like to know if I could just accomplish this with a scheduled task. I can create a task with these parameters: $trigger = New-ScheduledTaskTrigger -Once -At 7am -RepetitionInterval (New-TimeSpan…
3
votes
2 answers

windows scheduled task is killed (timed out) too soon

I have a scheduled task that is configured to be killed 23 hours after starting. When I export the task to XML I can verify this setting because I see the line: PT23H However, the task is actually being…
Dan Tenenbaum
  • 193
  • 1
  • 2
  • 10
3
votes
2 answers

How can I check group membership when an user account is deleted ?

I have a scheduled task which executes a PowerShell script when an user account is deleted from Active Directory. Is there a way to check the group membership of that user account ? I have tried with If ((Get-ADUser $user -Properties MemberOf |…
Pandoranum
  • 51
  • 1
  • 5
3
votes
1 answer

ColdFusion 11 Scheduled Task not running

I have setup two Scheduled Tasks in the ColdFusion Administrator. When I attempt to run them manually (using the "play" button in the Administrator), the page responds with: This scheduled task was completed successfully. However, the task has not…
Eric Belair
  • 301
  • 2
  • 12
3
votes
1 answer

Who triggered my scheduled task?

We have several scheduled tasks setup to run under a service account. We had a few incidents where the tasks have been triggered manually by a user. Looking at the history of the task it does not appear there is a way to determine the user that…
jrob24
  • 161
  • 1
  • 1
  • 2
3
votes
1 answer

Scheduled task deployed via GP, that runs a powershell script on a network share by a AD service account

I've created a powershell script that runs Chocolatey updates as well as does some logging locally and on a network share. The script itself resides on a network share, and I'm hoping to be able to have clients run it from there. The idea is that I…
greasewiz
  • 31
  • 1
  • 1
  • 3
3
votes
1 answer

Scheduled PS Script Not Running

I'm trying to run the script from https://gallery.technet.microsoft.com/Password-Expiry-Email-177c3e27 I've corrected the variables for my environment and I'm able to run it from my workstation and the server just fine when running it manually but…
3
votes
2 answers

The system cannot find the file specified- Task Scheduler. Win Server 2012

I have batch script file, which should encrypt a file with pgp. I have defined a task in task scheduler to do this, but I am keep receiving the error"The system cannot find the file specified". Interestingly, when I run the same line of script in my…