Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Change the Name of a Scheduled Task

Posted on 2014-02-20
5
Medium Priority
?
248 Views
Last Modified: 2014-02-25
Is there a command line switch with AT to change the name of the scheduled task instead of using the generic number?
0
Comment
Question by:portillosjohn
  • 3
5 Comments
 
LVL 20

Expert Comment

by:strivoli
ID: 39875149
Why not using the Task Scheduler instead of the AT command (which is deprecated)?
0
 
LVL 26

Expert Comment

by:Lionel MM
ID: 39876683
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.
0
 

Author Comment

by:portillosjohn
ID: 39876927
We have about 40 servers that we need to make 5 tasks for so we were hoping for a script of some kind.
0
 
LVL 26

Accepted Solution

by:
Lionel MM earned 2000 total points
ID: 39877474
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 http://ss64.com/nt/schtasks.html
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.
0
 
LVL 26

Expert Comment

by:Lionel MM
ID: 39886141
Glad to help--so what did you end up doing, if you don't mind me seeing your result?
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Integration Management Part 2
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question