The /u and /p parameters specify the permissions used to change the task. The /ru and /rp parameters specify the permissions under which the task runs. The /tr, /ru, and /rp parameters specify properties of the task that you can change. The /tn and /s parameters identify the task. Specifies to delete the task upon the completion of its schedule. However, if the command includes the /ru parameter, then the run as user is the account specified by the /ru parameter. By default, run as user is the current user of the local computer when the task is scheduled or the account specified by the /u parameter, if one is used. You can't use a change command to remove the interactive-only property from a task. This parameter has no effect on tasks that run with system permissions or tasks that already have the interactive-only property set. Specifies to run the scheduled task only when the run as user (the user account under which the task runs) is logged on to the computer. Specifies the last date on which the task should be run. Specifies the first date on which the task should be run. This parameter is optional and valid only with a MINUTE or HOURLY schedule. Without /k, schtasks doesn't start the program again after it reaches the time specified by /et or /du nor does it stop the program if it's still running. Stops the program that the task runs at the time specified by /et or /du. For example, a value of 14:30 is equivalent to the 12-hour time of 2:30 PM. For example, a value of 14:30 is equivalent to the 12-hour time of 2:30 PM.Ī value that specifies the duration to run the task. Specifies the end time for the task, using the 24-hour time format, HH:mm. Acceptable values are LIMITED (scheduled tasks will be ran with the least level of privileges, such as Standard User accounts) and HIGHEST (scheduled tasks will be ran with the highest level of privileges, such as Superuser accounts). If either the /et or /du parameters are specified, the default is 10 minutes. Specifies the repetition interval for the scheduled task, in minutes. Specifies the start time for the task, using the 24-hour time format, HH:mm. The specified program replaces the original program run by the task. If you don't add the path, schtasks assumes that the file is in the \System32 directory. Enter the fully qualified path and file name of an executable file, script file, or batch file. This parameter is ignored with used with the local System account.Ĭhanges the program that the task runs. Specifies a new password for the existing user account, or the user account specified by the /ru parameter. For the system account, valid values are "", "NT AUTHORITY\SYSTEM", or "SYSTEM". The /u and /p parameters are valid only when you use /s.Ĭhanges the user name under which the scheduled task has to run. If you use the /u parameter without the /p parameter or the password argument, schtasks will prompt you for a password. Specifies the password of the user account specified in the /u parameter. The /u and /p parameters are valid only when you use /s. The specified user account must be a member of the Administrators group on the remote computer. By default, the command runs with the permissions of the current user of the local computer. Runs this command with the permissions of the specified user account. Specifies the name or IP address of a remote computer (with or without backslashes). Enter the task name ( Note: Task names that have a space in its name are required to be wrapped in double quotes). To run a task with permissions of a different user account or with system permissions, use the /ru parameter. By default, tasks run with the permissions of the current user of the local computer, or with the permissions of the user specified by the /u parameter, if one is included. The task you plan to run must have the appropriate permission these permissions vary by task. Otherwise, the remote computer can't authenticate the user account specified, and it can't verify that the account is a member of the Administrators group. You can use the /u parameter in a /create or /change operation if the local and remote computers are in the same domain, or if the local computer is in a domain that the remote computer domain trusts. To schedule, view, and change all tasks on the remote computer, you must be a member of the Administrators group on the remote computer, or you must use the /u parameter to provide the credentials of an Administrator of the remote computer. To schedule, view, and change all tasks on the local computer, you must be a member of the Administrators group. The user account under which the task runs ( /ru)Īdds the interactive-only property to the task ( /it) Changes one or more of the following properties of a task:
0 Comments
Leave a Reply. |