Change the Name of a Scheduled Task

Is there a command line switch with AT to change the name of the scheduled task instead of using the generic number?
Who is Participating?
Lionel MMConnect With a Mentor Small Business IT ConsultantCommented:
You can use schtasks to make tasks
Here is an example.
schtasks /s \\remote-system-name /create /tn "taskname" /ru remote-user /rp remote-password /tr C:\path\Program.bat /st start-time
run schtasks /create /? to all the available options and some examples
Also check out
Once you have a scheduled task you can then simply use a list of all your servers to look through and it will change the servername for you without having to do it for each 40 servers.
Why not using the Task Scheduler instead of the AT command (which is deprecated)?
Lionel MMSmall Business IT ConsultantCommented:
No there is not, not with AT but once you have created a task with at you can then use the scheduled tasks to rename it, manage it--you can do that either through Control panel, Scheduled tasks or from the command line using
schtasks /change /?
There you will see the option to change the name
/TN      taskname         Specifies which scheduled task to change.

However you may simple be better off to start using schtasks from the start because in later version of Windows after 2003 AT is no longer available.
portillosjohnAuthor Commented:
We have about 40 servers that we need to make 5 tasks for so we were hoping for a script of some kind.
Lionel MMSmall Business IT ConsultantCommented:
Glad to help--so what did you end up doing, if you don't mind me seeing your result?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.