Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set a Windows scheduled task to run in the background? [closed]

Does anyone know how to set a scheduled task to run in background using Windows Task Scheduler?
There doesn't seem to be any option to do this.

like image 773
Samuel Liew Avatar asked Jul 04 '11 07:07

Samuel Liew


People also ask

Does Task Scheduler work when closed?

No, it won't execute. The Task Scheduler in Vista and 7 can be configured to run missed instances, but XP's cannot. See the checkbox below called Run task as soon as possible after a scheduled start is missed. However, all three can be set to wake the computer if it's asleep or hibernating.

Does Task Scheduler have to be open to run?

Regardless of the Windows version or edition you have, you can also use the Run window to launch the Task Scheduler. Press the Windows + R keys on your keyboard to open Run, and then type taskschd.

Will scheduled tasks run if computer is locked?

as a scheduled task does not appear to work when the PC is locked.

Will Task Scheduler run when computer is sleeping?

The short answer is yes, it will defragment while in Sleep Mode.


2 Answers

As noted by Mattias Nordqvist in the comments below, you can also select the radio button option "Run whether user is logged on or not". When saving the task, you will be prompted once for the user password. bambams noted that this wouldn't grant System permissions to the process, and also seems to hide the command window.


It's not an obvious solution, but to make a Scheduled Task run in the background, change the User running the task to "SYSTEM", and nothing will appear on your screen.

enter image description here

enter image description here

enter image description here

like image 133
Samuel Liew Avatar answered Sep 23 '22 20:09

Samuel Liew


Assuming the application you are attempting to run in the background is CLI based, you can try calling the scheduled jobs using Hidden Start

Also see: http://www.howtogeek.com/howto/windows/hide-flashing-command-line-and-batch-file-windows-on-startup/

like image 24
Jay Sidri Avatar answered Sep 23 '22 20:09

Jay Sidri