Solved

Change the Name of a Scheduled Task

Posted on 2014-02-20
5
229 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
ID: 39875149
Why not using the Task Scheduler instead of the AT command (which is deprecated)?
0
 
LVL 24

Expert Comment

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

Accepted Solution

by:
lionelmm earned 500 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 24

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

895 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

14 Experts available now in Live!

Get 1:1 Help Now