Schedule ONE-TIME task with "schtasks" at next reboot?


Extraordinary Member
As you know users can setup a task to be run at startup with the built-in task scheduler "schtasks" with

schtasks /sc ONSTART ... /TR ...

However this command syntax triggers the task at EVERY BOOT time.
How do I setup (from command line and not through GUI!!!) a ONE-TIME task?

For simplicity lets assume I want to run chkdsk for partition E: ONCE at next reboot.

How can I achieve this with "schtasks" built-in command?

I don't want to specify a certain time because it varies from time to time and computer to computer and exacty boot time cannot be specified.


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.