People who code: we want your input. Take the Survey

Questions tagged [scheduled-tasks]

A scheduled task is a job scheduled to run at a specific time and frequency and run a specific command on the operational system.

Filter by
Sorted by
Tagged with
0
votes
3answers
35 views

Task Scheduler always launches applications in background. How to launch in foreground?

It is a problem I encountered in Windows 10 task scheduler. I created a basic task whose action is start a batch file as follows: start "BitComet" "C:\Program Files\BitComet\BitComet....
0
votes
0answers
8 views

Scheduled task “Stop if cease idle” not working on battery

I have a scheduled task triggered to run on idle, and set to Stop if the computer ceases to be idle. The action is just a simple batch file with a timeout to lock the computer: @echo off color 4f echo ...
0
votes
0answers
18 views

Improving task from Task Scheduler

I have to restart a program after waking up the laptop. The trigger is working (https://www.sevenforums.com/general-discussion/308855-using-task-scheduler-restart-program-upon-wake-sleep.html) Then I ...
0
votes
0answers
20 views

Start Excel macro with sending emails via Task Scheduler

I have got a problem with Excel macro with sending emails from Outlook via Task Scheduler. My macro has more sub procedures (one of them is SENDING_EMAILS from Outlook). These sub procedures are ...
2
votes
1answer
40 views

Task Scheduler .bat file creating wrong folder, while manually running it creating correct folder

When I am running .bat file manually it is creating the right folder, but when same file I am scheduling and running through Task Scheduler it is not creating folder as expected. Below is the main ...
0
votes
0answers
18 views

created task in task scheduler does not execute program

I created a simple batch file to start a program as the action, and the trigger being when a specific application is terminated (lghub.exe). For some reason the task doesn't execute the program when I ...
0
votes
0answers
65 views

Task Scheduler half completes task from batch file, then gives (0x1)

I am attempting to use Task Scheduler to automatically create a backup of a couple of folders in a location at the end of the day. I am using 7zip as my archive program. The batch file that I am ...
0
votes
1answer
30 views

PC has stopped booting on a schedule

My PC has been set to boot at 4:30 am for a year, and has worked flawlessly. It's set in the BIOS (Gigabyte X299 UD4 Motherboard). A few days ago I was looking through the BIOS and saw that Fast Boot ...
0
votes
0answers
14 views

MSI GF65 Thin, no scheduled boot options in BIOS?

I would like to schedule my laptop to boot automatically each day. But the BIOS appears to not have such a feature. How can I boot on a schedule, or can I enable this feature on this machine?
0
votes
0answers
67 views

File not found when attempting to run a scheduled task in windows 10

I am attempting to write a powershell script that schedules another powershell script. Here is the code that I currently have: $Action = New-ScheduledTaskAction -Execute 'pwsh.exe' -Argument '-...
0
votes
0answers
12 views

Windows 10, cmd, schtasks, varying arguments

Let's say that a given scheduled task simply runs a batch script (*.bat or *.cmd). Is it possible to pass varying command line arguments to such script? With "varying", I mean, the arguments ...
0
votes
0answers
26 views

Will 'mouse.bat moveBy 1x1' keep the screen from locking in an RDP session if it's run under a different user?

I'm using this Mouse.bat batch file to keep my screen from locking after 15 minutes (it's enforced by Group Policy). I have it set as a scheduled task to run every 10 minutes and it works with my ...
0
votes
0answers
16 views

How to run/kill/etc process when laptop on battery? [duplicate]

I need to run a script when my laptop starts working on battery. Is there a log event or something like this?
1
vote
1answer
67 views

How to identify which user triggered task?

I would like to have a Scheduled Task that runs as SYSTEM but is triggered by a user action and is on a delay. That part doesn't seem so hard. The hard part is that I want the (PoSh) script that runs ...
0
votes
0answers
17 views

open up task scheduler already connected to a remote computer?

I am frequently opening task scheduler on windows 10 and connecting it to one specific other windows 10 machine via the context menu on the root object in the console tree--this guy: Because my ...
0
votes
0answers
17 views

How do you repair or re-install the Edge Updater components (scheduled tasks and services)

A user has attempted to remove the "Microsoft Edge Update" application from a Windows 10 PC (1909) (Not Edge but the updater), because the uninstall button was greyed out. The user was an ...
2
votes
1answer
68 views

Start Python script with Task Scheduler via PowerShell

With PowerShell, I want to create a new task that starts a Python script: Setting it this way via the GUI Task Scheduler works, but in my PowerShell code below, I don't know how to specify the "...
0
votes
0answers
21 views

Windows 10 after update not locking after auto login (permanent grace period)

Continuing from Auto-lock delay after login and also tried the answer https://superuser.com/a/1096454/676385 LONG STORY: The scheduled task helps and is faster than using startup commands, there's ...
1
vote
2answers
98 views

How to run a PowerShell script with elevated Access using Task Scheduler

I have a PowerShell script that I want to use to close applications running in a different users session. The script works when ran as an administrator, however I don't want to give the users admin ...
0
votes
1answer
51 views

Registry key in HKLM “invisible” to SYSTEM?

I'm trying to allow all users to execute a scheduled task. The script I found/adjusted works fine when run as an admin, but fails when run as SYSTEM (i.e. as a startup or SCCM script). Walking ...
1
vote
1answer
137 views

How to Automatically Run a Batch File on a Self-Cleaning Virtual Machine?

I am trying to learn a little bit of test automation. I know some batch files, I am brushing up my "PowerShell" skills and - who knows - I might even end up using some bash, in the long run. ...
1
vote
1answer
183 views

Why user accounts do “not have permission to run this task”?

I am creating a Scheduled task configured via PowerShell using the XML: $LogonTask_xml = @" <?xml version="1.0" encoding="UTF-16"?> <Task version="1.3" ...
0
votes
1answer
19 views

Windows Task Scheduler Not Running Microsoft Access Script

I have a script setup in an Access database that I want to run nightly. I've setup a task in task scheduler to run every day at 4:00am. It opens the database, runs the script, and the last line of the ...
0
votes
0answers
17 views

How to call `start` from Windows 10 Task Scheduler to prevent momentary window popup of cmd.exe? [duplicate]

When calling an app via cmd.exe to bypass the administrative prompt for apps that need to run with elevated privileges, I find that the momentary popup of the cmd.exe is distracting / bothersome for ...
0
votes
1answer
28 views

Why is JAVA process requiring a windows domain user in stead of a local user?

I have powershell script that executes a JAR-file (in $3DjarPath) using: Invoke-Expression '& $JavaPath -Xmx512m -XX:MaxMetaspaceSize=512m -splash: -jar $3DjarPath backuprepo -repo $repo -o "$...
0
votes
1answer
12 views

Script not able to locate file

I have task scheduler to run every sunday to take backup and copy to ftp server. But script failing with System Error code:2 . However i am able to run script manually successfully.
1
vote
1answer
30 views

Task Scheduler skip the task if my computer is not open

I am using Task Scheduler with automation tasks specifically with python. But I realize if my computer is close during execution time of the task, the next run time is automatically set the next date ...
0
votes
0answers
89 views

Python screen shot not working in Task Scheduler when choosing “Run whether user is logged on or not”

Python script with Selenium browser flow. Windows Server 2016 Standard Python 3.8.1 Firefox 86.0 Executing the python script (always non-healess i.e. with option headless DISABLED) from Windows in 3 ...
0
votes
0answers
22 views

Launch script in a new window on schedule, as admin

I would like to schedule the execution of a powershell script, with the following criteria: Run the powershell script in a visible powershell terminal window (I want the powershell terminal to popup ...
2
votes
1answer
590 views

task scheduler doesn't seem to be running powershell script like it should

I have the following PowerShell script saved as test.ps1: # test script Write-Output "z" >> C:\path\to\log.txt In the Task Schedule I have it set to "Run whether user is logged ...
1
vote
1answer
81 views

deleting entries in History tab of Task Schedule for specific task?

I have Task History enabled in the Task Scheduler and am wondering if there's a way to delete entries in the Task History tab for a specific task. Case in point: I'm trying to diagnose an issue and ...
0
votes
0answers
52 views

Powershell: How trigger a script when the network changes?

I have a powershell script that manually sets my dns. I need it to run whenever the network interface comes up or changes. For example, when I go on and off the docking station (that has wired ...
0
votes
1answer
24 views

Task Scheduler in Windows 7 always treats computer as idle

I have a weird issue with one of the default Windows tasks, namely Microsoft/Windows/AppID/VerifiedPublisherCertStoreCheck Here are its default settings: Triggers At startup Delay task for 30 minutes,...
0
votes
2answers
23 views

Specifying log file for a scheduled powershell script

I have created a scheduled task in windows to run a powershell script at specific time. As you can see, in the action page, I have specified powershell path as the program and my script as the ...
2
votes
1answer
596 views

Create Scheduled Task xml file with batch file

I'm trying to make a batch file that creates an xml file then imports that file into scheduled tasks, plus a few other things. I know how to import the xml and do everything else I need, but I can't ...
1
vote
1answer
55 views

Task Scheduler trigger task when a Process Terminates

I'm trying to use Windows 10 Task Scheduler to create a task that is triggered when a particular process is terminated. My first step was enabling Audit process tracking in the Group Policy Editor (...
0
votes
0answers
23 views

Task Scheduler using cmd SCHTASK - Is there a way to set the Config for Windows and specify the 'Start In' line?

I work with people even less savvy than me (crazy, I know!) and I stumbled upon SCHTASK recently which is wonderful. This allows me to create a batch file to distribute to them to set up a scheduled ...
0
votes
1answer
83 views

Run windows command line in windows task scheduler without opening a cmd window

I set up a windows task schedule to run every 5 minutes. The task start the cmd.exe program and runs a command. The problem is that every 5 minutes a cmd window is opened and its annoying. Is there a ...
0
votes
0answers
19 views

Running scheduled, admin-level commands on Windows 10 while using non-admin user account?

I am trying to set up a script on my computer that swaps out the hosts file during certain periods of the day to avoid wasting time on websites during "productive" times. Basically it will ...
0
votes
0answers
6 views

Scheduled compression of large files and delete

How can I do the following? scan a folder (including sub-folder) for large files (e.g. > 30 MB) for positive results, compress at original location (while not keeping the uncompressed file) on ...
0
votes
0answers
135 views

What 'wait for idle for' as 'do not wait' means?

There is already a question asking Task scheduler - What is "Wait for idle for"?, but I could not understand what the Do not wait thing does when Start the task only if the computer is idle ...
0
votes
2answers
78 views

Task scheduler (“Run whether user is logged on or not”) on Windows 10

My PC is not password protected (because it's for the family), and whenever I create a task on task scheduler with "Run whether user is logged on or not" it asks me to enter a password. How ...
-1
votes
2answers
115 views

Is there a way to run a task when a process has completed its operation?

I am an expert in writing .bat files, I am experienced in writing .ps1 files, I just learned to use taskschd to create scheduled tasks. Currently I can set a time to trigger a script, I know I can ...
0
votes
0answers
33 views

How do you set a scheduled task that can run a program in the foreground as an administrator, triggered by any user?

For context incase I am looking at this wrong: I'm working on building my little sisters a computer with RGB and the GUI will only launch from an Admin account. I do not fully trust them with ...
0
votes
2answers
114 views

Batch script not running at startup using Windows Task Scheduler

I have written a simple batch script [E:\Project Artemis\startup.bat] to start Python SimpleHTTPServer at startup of Windows 7, with the script working when I manually execute it, but after adding it ...
0
votes
0answers
20 views

Wake and log into a PC using Task Scheduler?

I'm currently running a batch script which seems to requires that the user needs to be logged into their PC to execute properly. https://stackoverflow.com/questions/65190927/setting-selenium-webdriver-...
1
vote
1answer
132 views

Task scheduler: Run “At startup” does not work on cold boot

When I schedule a task to run "At system startup" in Windows 10 task scheduler it runs well on reboot. But if I choose shutdown, and then turn on the system with the computer's power button, ...
0
votes
0answers
41 views

PowerShell script run by a scheduled task wont launch the browser

I have a scheduled task that run everytime a user connect via RDP session (RDPcoreTS Operational log - event id 98) I have set up the task to use that event ID as trigger and for action i have set up ...
1
vote
1answer
699 views

How to solve PowerShell error “Cannot connect to CIM server. The specified service does not exist as an installed service”

I'm trying to run a simple PowerShell script invoked from a .bat file. The script's purpose is to update the properties of an existing Windows Task Scheduler task so it will run at a time specified ...
0
votes
0answers
61 views

How to set up email notification when task scheduler completes “with return code…”

How can I setup an email notification to myself when task scheduler not failed but completed "with return error code...". Again, log file doesn't say Error, it says Action completed. The ...

1
2 3 4 5
17