?
Solved

auto create schtasks in Win2K

Posted on 2007-03-17
2
Medium Priority
?
698 Views
Last Modified: 2012-08-13
I wrote a bat file that will create a schedualed tasks, but it only works in XP, how can i make it work for Win2K?
***********************************
schtasks /delete /TN ALLCPU /F
schtasks /create /RU ***** /RP ***** /SC daily /ST 01:00:00 /TN ALLCPU /TR "\\nocal.natc.com\netlogon\AllCPU.exe"
wait
exit
************************************
0
Comment
Question by:bleonard55301
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 750 total points
ID: 18740850
You'll have to use at...

at 01:00 /every:m,t,w,th,f,s,su "\\nocal.natc.com\netlogon\AllCPU.exe"

Otherwise, you can use the same above but run it from an XP device pointing at a 2k device using:

schtasks /s \\2kPC /delete /TN ALLCPU /F
schtasks /create /s \\2kPC /RU ***** /RP ***** /SC daily /ST 01:00:00 /TN ALLCPU /TR "\\nocal.natc.com\netlogon\AllCPU.exe"
wait
exit
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18742132
Was something missing from my answer?  Those are your only two options.  Not sure why you considered that a "B" answer.. :(
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

765 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