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
0
votes
2 answers

How to keep a local folder’s contents synchronized with a network share? (Windows)

I would like to have a local folder on all of my domain connected computers kept in sync with a share on one of my servers. Only Domain Admins and the SYSTEM account should have Modify permissions to the local folder and the share, everyone else…
Corey
  • 2,031
  • 12
  • 39
  • 54
0
votes
0 answers

Schedule access to windows network share (grant, revoke permissions on certain date for certain user)

We are looking at automating the task of granting and revoking Windows network share permissions to certain users (apprentices) that move through different departments in the company. Each time they leave one department their access to the shares…
0
votes
0 answers

Task scheduler with one exception per year

Currently, we have tasks with Windows Task Scheduler that run each night. The tasks pump data from one database to another. Data is also transformed in this process. It is not a one to one copy. The date interval is one month back in time. All this…
berocoder
  • 197
  • 2
  • 9
0
votes
1 answer

Running scheduled task a period of time after another one started

I have two scheduled task running on my Windows Server. One of them is to run a database and the other is to run an API to access the database. I need the API task to run after the database task has started, lets say 30 seconds, to make sure the…
0
votes
1 answer

task scheduler powershell foreground

I am using windows server 2016 "scheduled tasks" to run a powershell script. For some reason, i would see the script run in foreground , and not in background. Any idea to resolv this ? Thanks
0
votes
0 answers

scheduled task not running

i have a problem, created a scheduled task, to run a bat file. it's programmed to run with administrator credential, works in other tasks. the file is a normal bat file. the code inside the file is the following: @ECHO OFF REM …
0
votes
1 answer

schtasks command has an unclear error

I am trying to change the expiry date of an Scheduled task using powershell because there are more than 40 tasks for users of same thing. schtasks.exe /Change /tn "Cache USer" /u "mydomain\administrator" /p /ed 23/07/2019 but I get an…
CanBuyukburc
  • 13
  • 1
  • 6
0
votes
1 answer

CRON starts to skipping to the next minute

I am setting up single minute crons to the crontab via a bash script for a load testing purpose. There is no issue with the script executing and the crons are added up and i can monitor crons are being executed via the /var/log/cron. But the issue…
CK LZEM7
  • 3
  • 3
0
votes
0 answers

Something's issuing CTRL_CLOSE_EVENTS but no one is logged in

We're running an Azure server, Windows Server 2012R2. Just of late we've been seeing various scheduled console applications going down because they've received CTRL_CLOSE events. However, no one has been logged in for some days. Is there any way,…
bugmagnet
  • 236
  • 1
  • 3
  • 16
0
votes
0 answers

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. Periodically in the past this server has had…
0
votes
1 answer

Powershell script won't restart on failure

I'm running windows 10 pro. I have a powershell script that starts every day at midnight and runs all day. It's controlled by the Task Scheduler. The script itself works fine and in the event of an error exits with code 1 The task definition is…
0
votes
1 answer

How can I enable, scan, and disable windows defender from inside a scheduled task?

If windows defender is disabled can you later (through a script) enable, run a scan and then disable it via a powershell script that is invoked as part of the scheduler? If this is possible then figuring out a way to email problems will be the next…
D-Klotz
  • 164
  • 1
  • 9
0
votes
1 answer

Scheduled powershell to replace batch file ends too soon or never ends

First I'll explain the context, because maybe I'm not doing it in the right way. We have an ERP developed using Oracle Forms 6i (yes, is really old). It has forms and reports. Reports have such complex queries that when run with ample dates the…
EAmez
  • 101
  • 6
0
votes
1 answer

Why is (notepad.exe) scheduled task running as SYSTEM process, but not displayed in the GUI?

I have created the following scheduled task using an Administrator cmd.exe: schtasks /CREATE /RU SYSTEM /SC ONLOGON /TN SYSTEM_notepad /TR C:\Windows\System32\notepad.exe The scheduled task runs just fine on LOGON: However, notepad.exe is nowhere…
Shuzheng
  • 419
  • 1
  • 8
  • 15
0
votes
2 answers

schedule backup job runs up to 9 hrs without errors

I'm very new to administration job... I have SQL server 2012, on that my senior scheduled a job for schedule backup. But, recently I noticed, after 8-May-2018(up to 26-May-2018) the backup files are missing. Then I realize that, the schedule job …
Pugal
  • 103
  • 3