Skip to main content

All Questions

23 votes
3 answers
44k views

Should a scheduled task remain in the "Running" state?

I'm new to using the task scheduler and I'm using it to run a batch file provided online when the computer boots. I r-clicked it and told it to run. It did and all is fine, but the Status of the task ...
1 vote
1 answer
5k views

schtask Activate task when specific user login

I want to create a batch file that creates a scheduled task to run a .cmd file when a specific user logons. So far I've come up with this: @echo off schtasks /CREATE /RU %username% /TN "TaskName" /TR ...
1 vote
1 answer
3k views

Every 5 min cron job between specific time (Windows Server 2008 and batch file)

Previous colleague set up cron job every 5 min for 24 hrs. Now I need to modify this only running between 7am to 7pm. I had never learned cron job so I googled and tried but it didn't work. Task ...
0 votes
1 answer
351 views

Connect automatically to wifi as soon as available and if it gets disconnected connect again

My windows 10 disconnects automatically from wifi sometime. My pc is not having monitor i am controlling it over remote desktop team viewer. Also sometimes running cleanup utilities disable the auto ...
2 votes
4 answers
66k views

Task Scheduler- Batch "Run whether user is logged on or not" not working

I've created a batch file (EnableDisable.bat) that will disable a Windows Task Scheduler job (SampleJob) on a local system, if a job with same name (SampleJob) is already enabled and running on ...
5 votes
2 answers
14k views

Windows Task Scheduler - When is a task considered "missed" or "failed"?

It is hard for me to boil this down, so the title is ultimately the question I suppose I need answered. Still, here is the background of my question: I am currently trying to create a Windows task ...
0 votes
1 answer
3k views

Task Scheduler return code 2147942401

I use this scheduled task for years and it always worked fine. Something weird happened a few weeks ago. This task executes .bat file which launch python script. It runs as administrator. A few weeks ...
0 votes
1 answer
131 views

Posiblities to login using Windows Task schedule

Im running automatization RPA daily with Windows Task Sheduler (WTS). Its okay but sometimes client lock screen and it wont work. I cant use WTS option to run if logged out because it will run in ...
0 votes
0 answers
223 views

Will checking the last Modified Date of a WIN7 TaskScheduler file (StartRecording), by means of a batch file, automatically update it?

I'm aiming for a quick way to monitor the last Modified Date of a WIN7 TaskScheduler file for Windows Media Center - probably quicker by a batch file than by clicking down 7 levels in Win Explorer. ...
0 votes
1 answer
1k views

Batch Command for Windows 10 Updates for Scheduling

I'm looking to run windows update (check and download updates) on Windows 10 machine on a certain day and time; let's say Saturday at 10pm. Is there a batch command that does this? I can then use ...
0 votes
1 answer
439 views

FileMaker Pro 13 Advanced and Windows Server 2008 R2?

What do we not understand about interaction between FileMaker Pro 13 Advanced and Windows Server 2008 R2? The problem to solve: At unpredictable intervals (perhaps averaging 3-5 days), the FileMaker ...
1 vote
1 answer
86 views

windows-7 nightly scheduled .bat with a DOS pause in it executes but never pauses

The following is my nightly_backup.bat file, scheduled to run every night at 11pm. But though it does the backups ok, I never find it paused in the morning, like I expect it. echo off ROBOCOPY C:\...
0 votes
0 answers
86 views

Creating a BAT to lopp directories and 7zip them

I a have a bunch of folders from my projects under C:\Projects, and they are a lot. While I can throw a task scheduler to robocopy the folder to B:\Backups\Projects\, having to 7zip (or just zip) ...
0 votes
1 answer
406 views

Batch file returns "divide by zero error" only when run using Task Scheduler

I had an issue with a batch file that returned "Divide by zero error" if, and only if, it was run using Task Scheduler. If run manually, it behaved as expected. I had managed to narrow down the ...
-1 votes
1 answer
2k views

Cleanup Windows on startup or shutdown

My Environment Multiple VMs all comprising of Various versions of Windows which is power on/off as needed i like to cleanup my %temp% and other places on reboot so as to save space and also speed up ...

15 30 50 per page