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.
941
questions
1
vote
1
answer
19
views
Windows 10 Wi-Fi hotspot on/off
I use my Wi-Fi mobile hotspot frequently. Is it possible to set it up to turn on/off at set times of day? Is it possible to set it to turn on when specified Wi-Fi devices, such as phones or laptops, ...
-1
votes
2
answers
89
views
VBA - Schedule tasks on oddly particular days
So I'm learning VBA with a lot of excel projects at work. I'm trying to see if I can get a macro I wrote to execute at certain times, autonomously. I've read articles on how to write a script to open ...
-3
votes
0
answers
58
views
How to protect Windows 11 after removing permissions on NSI service
I have been getting hacked many times recently. Please note that I have a clean installation of windows 11.
Please see image link Trusted Logon process??
I have removed permissions of:
wwansvc
...
0
votes
0
answers
83
views
Powershell: Get-StoredCredential not working when script is run from task scheduler
I am writing a powershell script which shall periodically run to backup the contents of a remote folder. That remote folder is mapped as a WebDav share to my Windows drive G:\.
This post and this one ...
0
votes
0
answers
21
views
How to create an scheduled task at startup with the extra condition that no user logins after some specific minutes?
I know how to create Windows scheduled tasks that runs after that computer is idle for some minutes/hours. But my question is different.
I want to create a task after startup that computer is idle ...
0
votes
0
answers
17
views
Why doesn't the task scheduler wake up the laptop?
The task executes, but it the cannot wake up computer in sleep (not hibernation) .
Task's parameters:
General:
Run only when user logged on
With highest privileges
Configure to win10
User: standart ...
0
votes
0
answers
29
views
Task Scheduler's idle settings
I want a Windows 10 Task Scheduler trigger to run a batch file that puts the computer to sleep at 8:10 AM of each day only if the computer has been idle for 1 hour. And here is my settings:
Problem ...
1
vote
1
answer
93
views
Programmatically Enable LG Gram Laptop Keyboard Backlight at Startup
I can't find anywhere how to automatically have the backlight turn on at either startup or after sleeping/hibernation after triggering a login event.
Is it possible to turn this on via a registry ...
0
votes
0
answers
147
views
How to schedule windows task with trigger logoff/shutdown and without elevation or stored credentials?
Important:
Please be aware, I search for a solution does not need either elevated rights (high-user-integrity) nor user credentials to be entered.
So, this is no duplicate.
Background story:
In ...
1
vote
1
answer
240
views
Windows Task Scheduler Run whether user is logged on or not On remote Server
I have a Powershell script I want to schedule. With this script, I want to send out an email.
When scheduling it only when I'm logged on, everything runs fine. The email gets sent out, no issues ...
0
votes
2
answers
64
views
Does Task Scheduler still run tasks even if the PC is unresponsive?
I have a PC that's prone to freezing, no blue screen or any errors, just ends up being unresponsive. The only fix I can think of is just restarting the PC. I created a new scheduled task which will do ...
1
vote
0
answers
46
views
Invoke S0 Sleep using Task Scheduler for all users
I'm trying to get a Windows 10 Optiplex 7000 to go to sleep at 10pm every day. I installed nircmd and created a task in task scheduler to run a .bat file with the following command: nircmd.exe monitor ...
0
votes
0
answers
16
views
How to automatically set up a series of reminders whenever a new file is created in a folder?
I want to do that on a Win11 machine. Let's say folder A has sub-folders B, C... Whenever a new file of a .xyz extension is created in any of them (but not when modified), a series of 6 reminders is ...
0
votes
3
answers
592
views
How to delete all contents of a folder without deleting the folder itself
I am in the process of setting up a shared network drive, that gets emptied periodically.
Its purpose is to provide an easy file sharing option for the users. Since I can't enforce them to always ...
0
votes
0
answers
61
views
Windows task scheduled powershells script that uses powercfg.exe prevents system from sleeping
Long story short, I have a task scheduled to execute a PS script ever 15 minutes that is checking electricity spot price. When it's higher than I want, it sets
powercfg.exe -x -standby-timeout-ac 60
...
0
votes
0
answers
176
views
Scheduled Task as Administrators doesn't run at Log On for some users
I have deployed a Windows 10 Scheduled Task on about 250 PCs, to run at Log On as Administrators with Highest Privileges. I used a batch file to remotely install the Task on these PCs, and it runs on ...
0
votes
1
answer
42
views
Keep User Instance Signed-in, Signing back in, if signed out
We have a requirement to have an executable running on a specific user's profile to enable our reports to run for some 3rd party software we use.
It's fine if the session is 'disconnected'.
Auto-boot ...
0
votes
0
answers
117
views
Schedule tasks on windows 11: administrator has no permissions
Trying to schedule a task, Enter user account information for running this task.
User account selection drop down:
sa
abc700ge5d28c9a2
<myUserAccount>
Where do the first two user accounts ...
0
votes
2
answers
625
views
Tenda AC9 - Current Time: 1999-12-31 18:31:13 (unsynchronized with internet time)
I have a Tenda AC9 (AC1200) and I can not change the date that appear on time settings and I do not have any manual changes or automatic internet one to synchronize, so this problem started 1 day ago ...
1
vote
1
answer
92
views
Scheduled Python task no more executing
I have a backup task written in Python 3.7.1 and I scheduled it for automatic daily execution via the Task Scheduler.
Until recently, it worked seamlessly, and I could see its activity on a console. ...
1
vote
0
answers
69
views
Windows Scheduler, process terminate event trigger fail because process started from external drive don't use disk letters
I am searching for posts that tell people how to start a new task when a specific process got terminated, and finally found some old posts such as
"How to start a program when another one is ...
0
votes
0
answers
108
views
Task Scheduler "stop task if it runs longer than" doesn't work
I try to use "stop task if it runs longer than" in Windows 10 Task Scheduler both inside the task trigger and inside the Settings tab, but it actually doesn't stop the program in the time ...
0
votes
1
answer
296
views
Windows 11 using Task Scheduler to change the Windows light/dark theme EXACTLY like how Settings would do it
Since Windows 11 doesn't have the light/dark theme depending on time of day, I decided to implement one through Task Scheduler. Basically at certain times, I'd change the binary values of
Computer\...
0
votes
0
answers
102
views
Issues with Task Schedulers Permissions in creating file
I'm having issues with a C++ program I wrote and is automated with the Windows Task Scheduler not being able to properly create log files.
Right now when my application starts up, it immediately ...
0
votes
1
answer
355
views
schtasks asking for password at task creation
I have to schedule the launch of a program and I have to do that through Task Scheduler.
I want to set the task to Run whether user is logged on or not and I don't want to check the Do not store ...
1
vote
2
answers
235
views
How to disable FireFox extensions through Windows Task Scheduler
I've set Task Scheduler to toggle various tasks depending on the time of day, such as setting Windows to dark mode at night and light mode at day. In keeping with this setup, I'd like to automatically ...
0
votes
0
answers
251
views
Windows task scheduler doesn't start task when the battery is low
I create the task with SCHTASKS.EXE /create /tn "TaskName" /ru system /xml ".\TaskName.xml"
This is the content of TaskName.xml
<?xml version="1.0" encoding="UTF-...
1
vote
1
answer
3k
views
Reboot the server at a given date and time
I need to schedule a reboot of a server every other Saturday at 11 PM.
I need to get this automated and not have to run it manually.
I have tried SCHTasks but the client does not accept and needs a ...
0
votes
0
answers
228
views
How to prevent Windows from shutting down if a scheduled task is running?
I have a task scheduled through Task Scheduler that can take a while to complete. I would like it to prevent Windows from shutting down (triggering the typical "waiting for program to close" ...
0
votes
0
answers
113
views
Schedule on windows task scheduler with eventid (XML)
i using task scheduler with custom XML to trigger a software when this specific usb is plugin however it can't seems to run does anyone have solution to this ?
<QueryList>
<Query Id=&...
0
votes
3
answers
794
views
Run forfiles.exe as a scheduled task, fails with return code 2147942401
I'm trying to run forfiles.exe as a scheduled task on a half dozen servers, in order to periodically delete old IIS log files. I have it running as SYSTEM, and I have it set to run with highest ...
0
votes
1
answer
323
views
How to access WSL files from Windows 11 task scheduler script
In .BAT file running from Task Scheduler task as administator user
eriting to file Windows Subsystem for Linux drive using
echo test >\\wsl.localhost\Debian\var\lib\postgresql\12\test
throws error
...
0
votes
0
answers
28
views
supress console window appear on periodical schedule program runnig tests
Have windows console program which should be alwys running on VISIBLE CMD WINDOW (Session ID 1). The program checking and displaying network data, but if network resource is not (temporarily) ...
0
votes
1
answer
178
views
Task Scheduler is not running a task to the second
In Windows Task Scheduler, one of my tasks is scheduled to run at 4:14:58 PM, but it's running at 4:15:00 PM. To rule out any underlying problem, I scheduled the task to run at 4:17:00 PM, and it ran ...
0
votes
1
answer
166
views
How do I prevent this dialog from popping up when running a VB script from task scheduler?
This is the undesired dialog that pops up when I run a Task in the Task Scheduler that just calls a VB script. Any idea how to make my Windows understand, that I do want to run the .vbs file using the ...
1
vote
1
answer
743
views
Cannot run .exe from Task Scheduler same as in PowerShell window
I am trying to run an .exe from within a PowerShell (PS) script that is started from Task Scheduler (TS). The .exe does not execute, although it is listed in Get-Process.
If I run the script manually ...
0
votes
1
answer
323
views
Task Scheduler wait until first logon of the day but thereafter guarantee only run at 1 hour intervals
I am trying to create a task in task scheduler to run every hour and pop up a dialogue that lets the user pick from a list what activity they are currently working on. These tasks need to be spaced ...
1
vote
2
answers
2k
views
PowerShell inspect Task Scheduler job history and report issues
I am trying to write a PowerShell script to look at a server's task scheduler logs for a specific task. I want to know if there are any errors or anything out of the ordinary.
Typically I see event ...
1
vote
0
answers
88
views
Powershell script to find task scheduler issues [closed]
I am trying to write a powershell script to look at a server's task scheduler logs for a specific task, and I want to know if there are any errors or anything out of the ordinary.
I typically see ...
0
votes
1
answer
204
views
how to import multiple batch jobs in a scheduler software in one go
I have multiple batch files already created; each should be run at a specific date and time.
I want to import them quickly into a task scheduler application in one go.
I did some research but could ...
0
votes
0
answers
338
views
In an elevated Powershell prompt, why does Get-ScheduledTask always fail with "Catastrophic failure"?
I want to use Powershell to enable and disable a Scheduled task, but Get-ScheduledTask task cannot access all the tasks that appear in the Task Scheduler GUI. I read on StackOverflow that I should try ...
0
votes
0
answers
725
views
How to get rid of scheduled task "\Microsoft\Office\Office Serviceability Manager"?
I wanted to disable this task, but whatever it is there is something that re-enables the task again behind my back. Allegedly some component running as NT AUTHORITY\SYSTEM.
I can see it from the event ...
0
votes
0
answers
119
views
Task Scheduler not executing python scripts after IP address change
I have some tasks that run python scripts on a windows 10 virtual machine; for some reason, after changing the IP address, those tasks can't be run. They don't even run when I manually try running ...
0
votes
0
answers
26
views
Scheduled tasks not running after EC2 machine is turned on
I have an EC2 machine with windows server which is meant to run basically during working hours, so it gets turned off during night time. I have a few scheduled tasks that would run in the morning, but ...
0
votes
1
answer
496
views
How to enable/disable windows defender on schedule
I want to enable/disable Windows Defender via Task Scheduler. The reason I want this is because I'm running an automatic backup via Backup and Restore (Windows 7) option and it keeps failing because ...
0
votes
1
answer
851
views
How to adjust MsMpEng.exe (Windows Defender) scanning schedule when Task Scheduler has no effect?
Every day around 11 PM my CPU use goes to 100% and I hear fans spinning up. Task Manager shows it's C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2207.7-0\MsMpEng.exe. Resource Monitor shows ...
0
votes
0
answers
161
views
Force Windows to trigger scheduled task in Battery Saver mode
I have several scheduled tasks in Windows 10 which usually start by time trigger or by computer startup trigger. These tasks run as SYSTEM account. But when Windows gets into Battery Saver mode all ...
0
votes
1
answer
101
views
Alternative to task scheduler on windows that might be allowed by network admins
I would like to run a command (to sync two folders) each time I log in. Unfortunately I am using a (Windows 10) work computer where access to task scheduler has been tuned off, and I obviously don't ...
0
votes
1
answer
262
views
How do I schedule an app to launch on Linux?
How would I launch a graphical application, like firefox or gnome-calculator, at a certain time. at does not work for this; i.e. echo "firefox" | at now does not launch firefox. Cron might ...
0
votes
1
answer
80
views
Task scheduler to restart a program when GPU temps are high
I am running multiple GPUs in my system for mining and used MSI afterburner to set the overclocks. I have identified an issue where one of GPU gets non optimized once the ambient temp of my room rises....