Syed Jahanzaib Personal Blog to Share Knowledge !

February 28, 2012

Howto Create Scheduled Task on Remote Computer

To create Scheduled Task on Remote Windows PC.
You can use the following command.
[Note: You must belong to Administrators group to perform this action.]

schtasks /create /s computer_name /tn "Weekly Backup" /tr c:\Backup_folder\backup.bat /sc weekly  /D FRI /st 13:00:00 /sd 02/28/2012 /ru "domain\admin_user" /rp "admin_password"

The above command will create an scheduled task which will run on every Friday at 1:00pm and it will execute backup.bat  file.

You can copy backup.bat to remote pc using \\computer_name\c$ and paste it where ever you like.
backup.bat can contain any action like taking backup. For example

C:\windows\system32\xcopy.exe c:\Backup_folder\*.* d:\Autobackup /S /D /C /Y

The above command will copy all data from c:\Backup_folder to d:\Autobackup. Next time when this file will be executed it will run as incremental backup, means only files that have been changed or added will be copied to destination folder.
We used this method to copy user data file to remote File Server :)~



Syed Jahanzaib


  1. nice work man, just add /RL Highest to run the task under highest privilages 🙂


    Comment by San — August 30, 2013 @ 12:04 PM

  2. Reblogged this on Người Đến Từ Bình Dương.


    Comment by Người Đến Từ Bình Dương — January 15, 2016 @ 11:43 AM

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: