Schtasks change in Window Server 2008

In this article I am going to explain about Schtasks change command in Windows Server 2008 operating system and also explain it's related syntax.
  • 2311

schtasks:change command in window server 2008

  • The schtasks change  command is a command-line tool of Windows Server 2008.

  • The schtasks change command is available on computers running Windows Server 2008.

  • In  schtasks change command, changes one or more of the following properties of a task.

    • The program that the task runs by /tr.

    • The user account under which the task runs by /ru.

    • The password for the user account by /rp.

    • Adds the interactive-only property to the task by /it.

Syntax

schtasks /change /tn <TaskName> [/s <Computer> [/u [<Domain>\]<User> [/p <Password>]]] [/ru {[<Domain>\]<User> | System}] [/rp <Password>] [/tr <TaskRun>] [/st <StartTime>] [/ri <Interval>] [{/et <EndTime> | /du <Duration>} [/k]] [/sd <StartDate>] [/ed <EndDate>] [/{ENABLE | DISABLE}] [/it] [/z]

Parameter

Parameter

Description

/tn <TaskName>

It is identify for the task to be changed. Enter the task name.

/s <Computer>

It is specify for the name or IP address of a remote computer. The default is the local computer.

/u [<Domain>\]<User>

It is run this command with the permissions of the specified user account. The default is the permissions of the current user of the local computer.

The specified user account must be a member of the Administrators group on the remote computer.

/p <Password>

It is specify for the password of the user account specified in the /u parameter.

/u [<Domain>\]<User>

It is specify for to change the user account under which the task runs. you must also change the user password When you change the user account.

Tasks run with permissions of the local System account do not require or prompt for a password.

/p <Password>

It is specify for a new password for the existing user account, or the user account.

/tr <TaskRun>

It is change the program that the task runs. Enter the fully qualified path and file name of an executable file, script file, or batch file.

/st <Starttime>

It is specify for the start time for the task, using the 24-hour time format, HH:mm.

/ri <Interval>

It is specify for the repetition interval for the scheduled task, in minutes. Valid range of interval is 1 - 599940.

/et <EndTime>

It is specify for the end time for the task, using the 24-hour time format, HH:mm.

/du <Duration>

It is specify for to close the task at the <EndTime> or <Duration>.

/k

Stops the program that the task runs at the time specified by /et or /du.This parameter is optional and valid only with a MINUTE or HOURLY schedule.

/sd <StartDate>

It is specify for the first date on which the task should be run. The date format is MM/DD/YYYY.

/ed <EndDate>

It is specify for the last date on which the task should be run. The format is MM/DD/YYYY.

/ENABLE

It is specify for enable the scheduled task.

/DISABLE

It is specify for disable the scheduled task.

/it

It is specify for run the scheduled task only when the "run as" user is logged on to the computer.

This parameter has no effect on tasks that run with system permissions or tasks that already have the interactive-only property set. You can not use a change command to remove the interactive-only property from a task.

/z

It is specify for delete the task upon the completion of its schedule.

/?

It is used for displays help at the command prompt.

Ask Your Question 

Got a programming related question? You may want to post your question here 

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.