start program after boot but before Logon

I'd like to start a program (bat-file "test.bat") after my W2k system (Prof. or Server) is booted (OS is up and running) but before anyone log on to the system. In the test.bat I'll excute some commands like ipconfig ...

Where (in the registry) can I force to run this program during the boot of W2k. I guess that the program has to be start like a service. I'd like to have here all necessary reg entries to run the "test.bat" file.

Thx.
rreihwalAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
pjknibbsConnect With a Mentor Commented:
AFAIK you can do this by just setting the script you're interested in to run as a scheduled task on system startup (e.g. using the normal Scheduled Tasks control panel).
0
 
Dawn_BlCommented:
Hi,

You can use AutoExNT which is part of the Win2000 Resource Kit. It allows you to run a batch file at boot without having to log on.

See Q243486 for more details. I use it and it's pretty fool proof :)

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q243486

Hope this helps,
Dawn
0
 
jmiller47Commented:
Ahhhh... You just don't know the right fools...

You can alos use Srvany from the Windows 2000 Resource kit also.

Here is some info on it.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q152460
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
mikecrCommented:
Also, if this is a domain and the computer is a part of the domain, you can set domain policy to run a script prior to login.
0
 
jmiller47Commented:
mikecr, PRIOR to logon? are you sure? Can you point out where this is set if possible?

Thanks
0
 
jmiller47Commented:
I never noticed the "When my computer starts" option in Scheduled task. Thanks for the inforamtion
0
 
mikecrCommented:
One of two ways via the policy can this be done. One is in the policy you specify two logon scripts to run, one as there regular script and the second will be your batch file. You will set them run run synchronously also so that one runs right after the other. Also, there is an option in the policy called "Run these programs at user logon" and you can specify the program or batch file to run. They can both be found under the Computer Configuration, Administrative Templates, System of the domain group policy.
0
 
pjknibbsCommented:
Why the B grade? If my comment didn't answer your problem sufficiently it's customary to say so to allow me to expand on my thinking.
0
 
jmiller47Commented:
Just so you are aware of the grading information which many people aren't, here is what is posted on the site.

How Do I Know What Grade to Give?
Although we use an A-D scale here at Experts Exchange, it works differently than, say, school grades. If one or more Experts' proposals are accepted as answers, they should usually be given an A or B grade, since they have taken the time to provide you with a working solution. If a possible solution is incomplete - ask for clarification or details before accepting the answer and grading it. People should not be given lower grades because of incorrect grammar or because you just accepted their answer or comment to close the question. Keep in mind, your question and any follow-up comments should be focused so that there can be a specific answer. The following is a good guideline to follow when grading:

A: The Expert(s) either provided you with a thorough answer or they provided you with a link to information that thoroughly answered your question. An "A" can also be given to any answer that you found informative or enlightening beyond the direct question that you asked.

B: The Expert(s) provided an acceptable solution, or a link to an acceptable solution, that you were able to use, although you may have needed a bit more information to complete the task.

C: Because Experts' reliability are often judged by their grading records, many Experts would like the opportunity to clarify if you have questions about their solutions. If you have given the Expert(s) ample time to respond to your clarification posts and you have responded to each of their posts providing requested information; or if the answers, after clarification, lack finality or do not completely address the issue presented, then a "C" grade is an option. You also have the option here of just asking Community Support to delete the question.

Remember, the Expert helping you today is probably going to be helping you next time you post a question. Give them a fair chance to earn an 'Excellent!' grade and they'll provide you with some amazing support.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.