Questions tagged [windows-task-scheduler]

Use for questions about programmatic modification of task scheduling on any version of the Windows OS.

The MS Windows system scheduler component manages the execution time (time slices) that competing processes & threads are given on available processor cores.

Tag usage

The task is for questions about programmatic modification of task scheduling on any version of the Windows OS. You should also tag questions with their specific Windows version, where relevant.

Related tags

References

Microsoft documentation is the primary source for documentation about Windows Scheduling. You may refer the following topics for more information:

845 questions
1
vote
1 answer

Python O365 Authentication Problems When Scheduled

I have a script to do a web scrape and send the data in an email via the O365 package. I've registered the app with Azure, and completed the authentication flow and the code runs fine in Jupyter Notebook. However, problems begin when I try to run…
1
vote
2 answers

Is it Possible to launch/Trigger an desktop bridged app(Win32) with/without command line parameter from windows task scheduler?

I have a WPF application which is converted to UWP using the desktop bridge, Now I need to call this app/exe from windows scheduler to do some stuff. Now my problem is getting access denied. If any app trying run from task scheduler getting this…
ThunderBird
  • 81
  • 10
1
vote
0 answers

How to add a scheduled task with Inno Setup that runs hidden

I've learned to add a task to the Windows 10 Task scheduler with Inno Setup (article). Filename: "schtasks.exe"; Parameters: "/create /tn ""Greetings hourly"" /tr ""{app}\engine.exe -reprint"" /sc hourly /st 01:00 /f /NP"; Flags: shellexec I use…
1
vote
0 answers

Alternative to Sending Automated Emails using RStudio and Windows Task Scheduler. RStudio Connect?

I am looking for a better solution to something I am currently doing. We send out hundreds of emails a day using a combination of Windows Task Scheduler and r-scripts and the mailr package. Some issues we are running in to with this is if we try to…
Andrew P
  • 11
  • 2
1
vote
3 answers

Delete Scheduled Task Without Admin Rights

I've created a scheduled task using the example in this question, but don't seem to be able to end it now. Getting the "Syntax error" when I run the following code found here schtasks /delete /tn * /f I also tried schtasks /delete /tn "Execute…
ln29st
  • 83
  • 2
  • 11
1
vote
1 answer

Open Excel file using Windows Task Scheduler

I have a Talend job that will open an Excel file when certain conditions are met. The Excel file has lots of VBA in it to read from SQL Server and create a document. I can run the Talend job successfully when running from Open Studio. I am now…
Ted
  • 487
  • 2
  • 12
  • 23
1
vote
1 answer

Windows task scheduler last run result 0xff

I want to run php script through windows task scheduler. Following is the content of .bat file - cd C:\test_folder "C:\Program Files (x86)\PHP\v5.6\php.exe" -f test.php This .bat file executes successfully if I run it manually but fails in task…
1
vote
1 answer

Python Script not working in CMD, but works as a Jupyter Notebook

I'd like to get a little insight for this issue I'm running into. I'm a rookie when it comes to python, and I'm not even sure how to properly identify my issue so I can research better answers. I'm using windows 10, and running python 3.8 (same…
1
vote
0 answers

Windows Task Schedule 0X1 Error only when running when user is not logged in

On my personal computer, I created a bat file with a command to run a py script inside. It runs fine in the command line and runs fine in Task Scheduler when "run when user is logged in" is checked. However I need to run the task when the PC is…
Steve Burt
  • 69
  • 1
  • 8
1
vote
2 answers

how to install awscli.msi and upload files to s3 using .bat script?

I need to schedule a .bat file which will install AWS CLI on windows and then upload files daily form a local directory to AWS S3. My script looks like - :: AWS CLI MSI installer for Windows (64-bit):…
1
vote
1 answer

How to send email to distribution list in outlook using task scheduler?

I went through numerous solutions for this but couldn't replicate for outlook DLs. I have below requirement. Create .bat file for testng.xml file and run using task scheduler at any prescribed time. This one I have done. Next is to send the testng…
avidCoder
  • 440
  • 2
  • 10
  • 28
1
vote
1 answer

.vbs script runs in batch file but not when run through task scheduler

I have a batch script with 4 commands as follows sqlcmd (truncate table in database) del "path to existing csv to delete" "path to my .vbs script" "file path to xls file to convert" "file path to where csv is to be created" "File path to Python"…
Michael
  • 749
  • 1
  • 8
  • 22
1
vote
1 answer

How to run SSIS package with password in Windows Scheduler?

I have an SSIS package that has the ProtectionLevel=EncryptSensitiveWithPassword and would like to run this project .dtsx file from the Windows Task Scheduler (on MS Windows Server 2012). In the task scheduler, trying to run... "C:\Program Files…
lampShadesDrifter
  • 3,925
  • 8
  • 40
  • 102
1
vote
3 answers

Run .Net method once in a month

I have a windows service using .Net framework which needs to do some "work" once in a month. What is the best way to implement this? I can think of the following options: 1) Do the "work" and sleep for 2592000 seconds (1 month equivalent). 2) Do…
1
vote
1 answer

I can't run autoit script through the task scheduler while being logged in. Not as a bat nor as an exe. They do run on their own

I am trying to make a task that runs at 1:00am that runs a autoit script that stops my minecraft server. When I click run through the task scheduler, it does nothing (but I notice the cmd does highlit in yellow on the task bar). I had already tried…