Time controlled Autostart of Windows 11, 10, ... etc. programs! In new Windows OS you can use SCHTASK to start programs at a certain time!1.) ... Using SCHTASK on Windows 11, 10, ...!
|
(Image-1) Time controlled Autostart of Windows programs! |
EXAMPLE 1:
Starting the program at 22:00 today.
Here in the example it is the Internet Explorer, which should be started at 22:00 clock!
Info: if it is after 22 o'clock, the program Start is executed the next day!
SchTasks /Create /SC ONCE /TN "The Task Name" /TR "C:\Program Files\Internet Explorer\iexplore.exe" /ST 22:00
SUCCESS: The scheduled task "The Task Name" has successfully been created.
EXAMPLE 2:
If you also want to start Microsoft's WordPad at 22:02 2 minutes later :
SchTasks /Create /SC ONCE /TN "The Task Name2" /TR "C:\Program Files\Windows NT\Accessories\wordpad.exe" /ST 22:02
SUCCESS: The scheduled task "The Task Name2" has successfully been created.
EXAMPLE 3:
The listing of the open commands goes through the simple input of "SchTasks" without arguments!
C:\>SchTasks
Folder: \
TaskName Next Run Time Status
======================================== ====================== ===============
The Task Name 9/25/2018 22:00:00 AM Ready
The Task Name2 9/23/2018 22:02:00 PM Ready
EXAMPLE 4:
Cancle the program Start:
C:\Windows-7>SchTasks /Delete /TN “The Task Name”
EXAMPLE 5:
List again by simply typing SCHTASKS
C:\Windows\System32>SchTasks
Ordner: \
TaskName Next Run Time Status
========================================
The Task Name2 9/23/2018 22:02:00 PM Ready
EXAMPLE 6:
You want a particular program to start at 01:01 am 01.01.2019 startet!
/SD 01/01/2019 <Date
/ST 01:01 <Time
SchTasks /Create /SC ONCE /TN "The Task 4" /TR "C:\Program Files\Internet Explorer\iexplore.exe" /SD 01/01/2019 /ST 01:01
EXAMPLE 7:
You want a particular program to start every Monday at 9:09
SchTasks /Create /SC WEEKLY /D MO /TN "Task 5" /TR "iexplore.exe" /ST 09:09
EXAMPLE 8:
You want a particular program to start at 9:09 every day
SchTasks /Create /SC WEEKLY /D MON, TUE, WED, THU, FRI, SAT, SUN /TN "Task6" /TR "iexplore.exe" /ST 09:09
Attention: You may need to be logged in as an administrator or as a member of the Administrators group to start programs automatically with this simple example.
Under Windows, you can start the cmd.exe in administrative mode ... see here , or the ColorConsole , this can also be started in administrative mode.
2.) Important questions and quick answers about using SCHTASK!
1. How do I use SCHTASK to automatically start programs?
Use the command `SchTasks /Create /SC [frequency] /TN [task name] /TR [program path] /ST [start time]`.
2. What steps are required to start cmd.exe as an administrator?
Right-click on cmd.exe and select "Run as administrator".
3. How can I automatically start Internet Explorer at 10:00 PM?
Use the command `SchTasks /Create /SC ONCE /TN "MyTask" /TR "C:\Program Files\Internet Explorer\iexplore.exe" /ST 22:00`.
4. What do I need to do to automatically start Microsoft WordPad at 10:02 PM?
Use the command `SchTasks /Create /SC ONCE /TN "MyTask2" /TR "C:\Program Files\Windows NT\Accessories\wordpad.exe" /ST 22:02`.
5. How can I list scheduled tasks with SCHTASK?
Enter the command `SchTasks` without any arguments.
6. How do I delete a scheduled task with SCHTASK?
Use the command `SchTasks /Delete /TN "MyTask2"`.
7. How do I start a program at a specific date and time?
Use the command `SchTasks /Create /SC ONCE /TN "MyTask4" /TR "C:\Program Files\Internet Explorer\iexplore.exe" /SD [date] /ST [time]`.
8. How can I start a program every Monday at 9:09 AM?
Use the command `SchTasks /Create /SC WEEKLY /D MO /TN "Task5" /TR "iexplore.exe" /ST 09:09`.
9. How do I use SCHTASK to start a program daily at 9:09 AM?
Use the command `SchTasks /Create /SC DAILY /TN "Task6" /TR "iexplore.exe" /ST 09:09`.
10. What commands are necessary to automatically start programs on Windows 10?
Use the command `SchTasks /Create /SC [frequency] /TN [task name] /TR [program path] /ST [start time]`.
11. Can I use SCHTASK on Windows Server 2019?
Yes, SCHTASK can be used on Windows Server 2019.
12. What SCHTASK commands are needed to start programs on Windows 11?
Use the same commands as for other Windows versions, e.g., `SchTasks /Create /SC [frequency] /TN [task name] /TR [program path] /ST [start time]`.
13. How can I use SCHTASK to schedule programs on Windows 8.1?
Use the command `SchTasks /Create /SC [frequency] /TN [task name] /TR [program path] /ST [start time]`.
14. What does the status "Ready" mean in the output of SCHTASK?
The status "Ready" means that the scheduled task was successfully created and is waiting to be executed.
15. How can I successfully create the scheduled task "MyTask"?
Use the command `SchTasks /Create /SC ONCE /TN "MyTask" /TR "C:\Program Files\Internet Explorer\iexplore.exe" /ST 22:00`.
16. Is there a way to modify scheduled tasks with SCHTASK?
Yes, use the command `SchTasks /Change /TN [task name] /[parameter] [value]`.
17. What are the benefits of using ColorConsole with SCHTASK?
ColorConsole provides a more user-friendly interface and simplifies the management and input of commands.
18. Can I execute SCHTASK commands without administrative rights?
No, most SCHTASK commands require administrative rights.
19. How do I start cmd.exe in administrative mode?
Right-click on cmd.exe and select "Run as administrator".
20. What happens if the scheduled time for a task has already passed?
The task will run at the next scheduled time or immediately if it was a one-time task and the time has already passed.
21. Can I use SCHTASK commands for programs in custom directories?
Yes, specify the full path of the program in the command `SchTasks /Create /TR [program path]`.
22. How do I check if a scheduled task was successfully created?
Enter the command `SchTasks` and check the list of scheduled tasks.
23. What arguments are needed to create a one-time task with SCHTASK?
Use the arguments `/Create /SC ONCE /TN [task name] /TR [program path] /ST [start time]`.
24. How do I schedule a task to run on specific days of the week?
Use the command `SchTasks /Create /SC WEEKLY /D [days] /TN [task name] /TR [program path] /ST [start time]`.
25. What requirements must be met to successfully execute SCHTASK commands?
You must be logged in as an administrator or a member of the Administrators group and run cmd.exe in administrative mode.
FAQ 39: Updated on: 5 June 2024 13:42