Solved

auto create schtasks in Win2K

Posted on 2007-03-17
2
689 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
  • 2
2 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 250 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

680 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