Solved

auto create schtasks in Win2K

Posted on 2007-03-17
2
678 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

758 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

20 Experts available now in Live!

Get 1:1 Help Now