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.
966
questions
2
votes
1
answer
783
views
windows Task scheduler - making a task run as an application rather than background process
I have a windows powershell script that runs all, day every. It's started by task manager at 5 minutes past midnight every morning, runs as an application (i.e. in a powershell console on my desktop) ...
1
vote
1
answer
1k
views
How to make Task Scheduler open a Document with a specific program?
I have Windows 10 Task Scheduler opening a specific .rtf (also tried changing it to .docx) file on workstation unlock. At present it opens automatically with Wordpad, but I want it to open using ...
3
votes
1
answer
703
views
running Process Explorer as administrator at log on of non-admin account
I have tried to achieve a supposedly simple task of running Process Explorer with administrator rights (to show all processes) when logging on as normal user on my Win10 Pro 21H1 system. It proved to ...
0
votes
0
answers
31
views
Windows 10 Update, sth. like "active days"
I would like to deny Windows Updates on the weekends, but not during nights for working days, since we run production tests over weekends:
In the documentation for Windows Updates, I can find ...
0
votes
2
answers
2k
views
Why scheduled Tasks not running on Windows Server?
I have several scheduled tasks stored in Windows Server 2016.
But none of them are executed at the appointed time. If I run them manually, they will run properly.
I have also created some tasks in the ...
1
vote
0
answers
158
views
How to add trigger for Task Scheduler on weekdays on a specific time, except for a certain days
So I have this .bat file that I need to run on weekdays at 1 pm. Adding it is easy, the problem is. Every 1st to 3rd day of the month(ex. January 1 to 3) the 1 pm run must not run but instead, it ...
1
vote
2
answers
3k
views
How can I schedule only Windows Defender to update itself the moment updates come out?
I schedule Windows updates according to my convenience. I would, however, like Windows Defender to automatically update itself the moment updates are released or at least be able to schedule Windows ...
0
votes
0
answers
622
views
Task Scheduler in windows10 - just created task is not listed in active tasks
I created it in the following way:
Open Task Scheduler from the start menu.
Clicked on "Create Basic Task" to create a new task and click Next.
Entered Name for the task
Answer when to ...
1
vote
1
answer
2k
views
Powershell script does not get executed by Task Scheduler
I have a simple Powershell script (ps1 file) that clears the contents of a existing file, and then appends date and status of a service to the file:
Clear-Content \\MyDomain\Homes\Usr\MyUser\"...
0
votes
1
answer
861
views
Running a Script in Foreground Without Login at Boot Windows10
I am trying to run a programme (t-rex, mining soft) which runs in the cmd indefinitely.
I want to run it at boot without login.
I have got it to run without any problems by scheduling a bat file, but ...
0
votes
1
answer
964
views
Windows Task Scheduler: Schedule task to run after reboot after 30 days
In Window 10, I want to schedule a task to run after 30 days but only after reboot (at startup)
I cannot combine these 2 triggers i.e. it should run when the system is rebooted after every 30 days.
As ...
0
votes
0
answers
2k
views
How to run a program with administrator privileges on user login under Windows 10 Pro?
I would like to run a task to monitor CPU temperature while I am logged into my regular working account, which does not have admin privileges. However, admin privileges are required to read the CPU ...
2
votes
2
answers
18k
views
Downloading all files from URL Folder to local folder
I want to download all contents from a url using Windows 10, like
https://example.com/folder
This folder may contain 100 files, and I want to put them all into
C:\backups
I am going to schedule this ...
0
votes
0
answers
100
views
Automatically Log Into Windows 10 At Specific Time
I am trying to run a macro to upload file to an website once a day on the weekend. I have created a macro with Pulover's Macro Creator that was successful in this.
My issue now is trying to find a way ...
0
votes
1
answer
3k
views
Does a scheduled task in Windows that is triggered by an event run continually?
I created a scheduled task in Windows 7 that is supposed to be triggered when an event happens. Well, the event happened, and the action did not get performed?
Does a scheduled task in Windows that ...
1
vote
0
answers
138
views
How to create a scheduled task in Windows that will detect if an application currently has a system tray (notification area) icon?
I want to create a Windows 7 (64-bit) scheduled task to determine if an application currently has a system tray (AKA notification area) icon.
The scheduled task can run a batch file, PowerShell script,...
0
votes
1
answer
348
views
CMD/PS1 runs from prompt but not as a SYSTEM scheduled task?
At first I tried using the following as a command for a scheduled task (see the full dump of the task below)
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command ...
0
votes
1
answer
577
views
As an admin, I cannot schedule for a user account a Task Scheduler for an UAC program
As an admin, I am scheduling my task for another user by doing this .bat command to schedule for ANOTHER_USER:
schtasks /create /tn AlarmClock /tr C:\ProgramData\AlarmClock.exe /sc onlogon /ru ...
1
vote
1
answer
2k
views
Windows Task Scheduler won't run task based on RDP login event
I want to run a command whenever I log in to my computer via RDP remote session. In task scheduler, I set the trigger as follows:
<QueryList>
<Query Id="0" Path="Microsoft-...
2
votes
2
answers
10k
views
How to run a PowerShell script at logon for all (current and future) users with elevated permissions without UAC
I'm building a login script for our company. Some of the things it will do include installing printers, mapping drives, setting wallpapers, etc. Many of these things will require elevated permissions....
0
votes
0
answers
281
views
Windows Task Scheduler running on multiple Virtual Machine instances
I suppose my question may expose my lack of knowledge about how VM instances operate. My understanding, as has been explained to me so far, is that each instance is identical to each other. If I have ...
0
votes
1
answer
1k
views
PowerShell - Close running script with another script
I have 3 PS Scripts, STOP.ps1, FORM.ps1 and ENABLE.ps1.
ENABLE.ps1 will create a task in task scheduler that opens the FORM.ps1 script every hour.
Once the FORM gets opened, there is a button to close ...
0
votes
1
answer
655
views
Task Scheduler , run task when .exe from a determined ParentProcessName closes
I have a .bat that opens two .exes:
explorer programA.exe
explorer programB.exe
Lets forget about ProgramB.exe and focus on the A.exe
The ProgramA.exe create 3 child process that doesnt close when ...
4
votes
1
answer
5k
views
What does "Run task as soon as possible after a scheduled start is missed" actually mean?
An example:
I have a scheduled task set to run at 11:00 with the option "Run task as soon as possible after a scheduled start is missed" checked, but the computer doesn't start until 11:30. ...
-1
votes
1
answer
1k
views
Task Scheduler does not launch chrome when Run whether user is logged on or not is selected
I have Python script for web-scraping. I am running it using papermill and then I created a batch file that I use on task scheduler to run. This workflow was running fine until my virtual machine got ...
0
votes
1
answer
767
views
Update task 'Next start time' with PowerShell
I have a PowerShell script that pops-up a GUI on users computers every 60 minutes, if they don't click a SUBMIT button within 15 minutes, it sends an SMS to an emergency contact. (The script is for ...
2
votes
2
answers
2k
views
Scheduled Task does not run after being re-enabled again
I have a lot of scheduled tasks that run, say, every 5 minutes. The trigger is defined as follows.
At 10:35 every day - After triggered, repeat every 1 hour indefinitely
Recently I disabled and ...
1
vote
0
answers
168
views
WSL2 suddenly writing to system32 instead of network share
I am running wsl2 on Windows10 1909. I need to backup some data from a wsl2 folder to a network share. Therefore, I wrote a backup script which seems to be working fine when running manually. The ...
0
votes
1
answer
2k
views
How to block certain apps (say games) except on weekends (Windows 10)
I am aware that applications can be blocked using 'Local Security Policy'. But how to combine it with Task Scheduling. I cannot find my way around the Task Scheduler.
Any other workaround is ...
0
votes
1
answer
274
views
Scheduled task Windows shutdown - Will this run if Windows Update is busy?
The company would like all employee PCs to be automatically shut down via a Scheduled Task which automatically runs each evening. I have set up a task to run:
C:\Windows\System32\shutdown.exe -s
at e....
1
vote
0
answers
500
views
Trying to create a "generic" Task Scheduler xml to push to multiple machines. Need assistance with the coding please
So Im trying to create a "generic" so to speak Windows Task Scheduler xml that I can push to multiple computers and just import it directly into Task Scheduler without having to edit things ...
0
votes
1
answer
1k
views
Automating commits in a github repository every sunday?
I am using :
Google Drive Desktop (as D:/)
Github Desktop
Windows 10 OS
I have :
A directory called "myNotes" on my Google Drive ( Which is D:/myNotes on Windows Desktop ).
I have a ...
1
vote
1
answer
1k
views
Windows 10 - Task scheduler (access denied when running .bat)
I have a .bat script, It just runs an .exe with arguments:
@echo off
iperf -s -u -i 1 -f b >> 24htestS.log
The problem is that when I run the task scheduler I get access denied (even as a ...
1
vote
0
answers
988
views
Robocopy Error 53 when not logged in. When logged in, Robocopy runs successfully
We run a nightly scheduled task that copies files from a local drive to a network share.
When I'm remoted in to this machine using any account, Robocopy runs fine. When I'm not logged in, Robocopy ...
0
votes
1
answer
1k
views
Task scheduler not waking computer
I have a task set up to wake the computer from sleep at a specified time each day. Windows 10 Task scheduler is set to run a .bat file (“echo hello”) as admin with the “wake computer to run task” ...
0
votes
0
answers
476
views
Windows Task Scheduler - tasks not actually running
We have about 6 Windows Servers (2016-2019). Some are on a domain, some are not. The servers on the domain run tasks from a dedicated "DOMAIN\TaskScheduler" domain account. The servers not ...
0
votes
0
answers
2k
views
Windows Task Scheduler Scan Result 0x2 - a new solution?
I'm trying to schedule a daily Windows Defender scan on my Windows 10 PC using Task Scheduler but it always fails with a 0x2. By itself that's old news - the problem has been around for years and ...
5
votes
5
answers
5k
views
Scheduling for the day before (or after) the nth weekday of the month
I've been thinking about this a lot lately because its come up twice for me recently. Using Outlook, how can I schedule something for the day before the nth Wednesday of the month? Since a month can ...
0
votes
0
answers
2k
views
Restarting a running scheduled task
We have a program, which we run on system startup, with the Windows Task Scheduler. The programs sometimes stops responding though and hence needs to be restarted. To keep it simple I just want to ...
0
votes
0
answers
56
views
Run a spefic program as administrator from an unprivileged user account without asking for password [duplicate]
My son does not have admin access on his computer but wants to run a game that asks for admin privileges.
I am looking for a way to run just this one program as administrator without prompting for ...
2
votes
1
answer
3k
views
Task Scheduler cannot run ps1 in background
I have a simple .ps1 file to unmap a network drive
# NAS
Set-StrictMode -Version 2.0
If (Test-Path N:) {
Net Use "N:" /delete
}
I have another script to mount that drive manually, and I ...
0
votes
0
answers
990
views
How to Export the Task Scheduler jobs using Powershell
I am trying to export the Task Scheduler jobs under Task Scheduler Library using Power shell.
But when i try to run the script it displays all the tasks which are in my machine, i don't want to export ...
2
votes
4
answers
15k
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
1
answer
402
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 ...
2
votes
1
answer
410
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
0
answers
547
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
1
answer
40
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
0
answers
129
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
0
answers
936
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
0
answers
83
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 ...