SCHTASKS – Windows CMD Command

Create / edit a Scheduled Job/Task. The job can be created on the local or a remote computer.


For MONTHLY schedules give the DAY as a number 1 – 31 (default=1)

To prompt for the password, specify /RP * or /RP none

The User Account under which the Schedule service runs will require specific file access permissions, user permissions and drive mappings.

If the /RU username and /RP Password parameters match the currently logged-in user, the task will run interactively (visible in the foreground).

For the system account, /RU username can be written as “”, “NT AUTHORITY\SYSTEM” or “SYSTEM”, a Password is not required. The system account has full access to the local machine but has no permissions on any other machines (or mapped drives) across the Network.

The new task must be set to start a minimum of 1 minute into the future. The /SC option is a little inconsistent, under Windows XP it requires an HH:MM:SS value, under Vista and greater it will accept HH:MM but in all cases the SS value in seconds will be ignored and rounded down.

PowerShell cmdlets

SCHTASKS.exe is limited to commands with less than 255 characters and does not have access to all of Scheduler 2.0 options such as “Wake up the machine to run this task“.

These additional options are available via the GUI or by using the Task Scheduler PowerShell cmdlets.

UAC (User Account Control) prompts.

If a scheduled task invokes a UAC prompt, then the task will fail to run unattended.
To prevent this make sure that you select the ‘Run With Highest Privileges‘ check box:

Other languages.

If you are running a non-english language version of Windows then the Days and Months accepted by SCHTASKS might be localised.
e.g. Italian days: lun, mar, mer, gio, ven, sab, dom Italian months: gen, feb, mar, apr, mag, giu, lug, set, ott, nov, dic.


Create a task to run at 11 pm every weekday

Now delete the task:

Create a one-off task to run a script at exactly12 midday:

Create a daily task to run a script at 5 pm:

Create a task ready to run on demand – this is done by creating a task scheduled far in the past:

Task Scheduler options are stored in the registry

You may also like...

2 Responses

  1. froleprotrem says:

    I don’t unremarkably comment but I gotta say appreciate it for the post on this one : D.

  2. zortilonrel says:

    You are my aspiration, I have few web logs and sometimes run out from brand :). “To die for a religion is easier than to live it absolutely.” by Jorge Luis Borges.

Leave a Reply

Your email address will not be published. Required fields are marked *