Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

auto create schtasks in Win2K

Posted on 2007-03-17
2
Medium Priority
?
700 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

636 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