Solved

Change the Name of a Scheduled Task

Posted on 2014-02-20
5
228 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 19

Expert Comment

by:strivoli
Comment Utility
Why not using the Task Scheduler instead of the AT command (which is deprecated)?
0
 
LVL 24

Expert Comment

by:lionelmm
Comment Utility
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
Comment Utility
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 24

Accepted Solution

by:
lionelmm earned 500 total points
Comment Utility
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 24

Expert Comment

by:lionelmm
Comment Utility
Glad to help--so what did you end up doing, if you don't mind me seeing your result?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now