For scheduling and automatic execution of tasks in the Windows environment, the standard Task Scheduler tool is provided, which ensures the execution of previously prepared tasks at a specific time, or when certain events occur, either once or at intervals, in the context of operating system or user accounts. In other words, using the Task Scheduler, you can schedule or perform a certain event, perform previously prepared actions, for example, check for updates, synchronize the clock on the time server when any user logs on, turn off or restart the computer, create a system restore point and etc. Starting from Windows Vista, Task Scheduler has become the main system maintenance tool, without which its normal operation is impossible. To manage scheduled task remotely in a graphical user interface environment, the Microsoft Management Console (MMC) with the taskschd.msc module or the Schtask.exe command line utility can be used.
The schtasks.exe utility is a standard scheduler management tool and allows you to create, delete, modify and poll scheduled tasks on a local or remote computer.
The user can create tasks or manage tasks on a remote computer using the task scheduler user interface for connecting to a remote computer. When this is necessary to know the name or IP-address of the computer which you want to connect. This howto helps to create scheduled task remotely
1. Run Task Scheduler with Windows Interface
Run Task Scheduler if it is not already running.
To run Task Scheduler using the Windows interface:
To start Task Scheduler using the command line:
2. Select Option Connect to Another ComputerMake sure that the Task Scheduler node is selected in the console tree.
In the Actions pane, click Connect to another computer. The Select Computer dialog box appears.
3. Select the Other Computer Option in Task Scheduler
4. You Are Connected to a Remote ComputerYou are connected to a remote computer. Now you can create tasks or manage tasks (start, end, activate, disable, create, delete, view, import and export tasks) on a remote computer in the same way as if the task scheduler was connected to a local computer.
5. Create and Manage a Task on a Remote Computer Using the Command LineOpen a command prompt. To do this, on the Start menu, push Windows+R and typy: cmd.exe
6. Use the Schtasks.Exe ToolTo create a task or manage it, use the Schtasks.exe tool, specifying the name or IP address of the remote computer to which you want to connect - in the / S system argument, the user name used to connect to the remote computer - in the / u username argument, and the password The corresponding username is in the / P argument of the password. To get help on using the Schtasks.exe tool, enter one of the following commands:
schtasks /Create /?
schtasks /Run /?
schtasks /End /?
schtasks /Delete /?
schtasks /Change /?
Also consider using Action1 to create scheduled task remotely if: