making something run only at boot

J

jon

I want a script of mine to run when the computer boots but
not when someone logs on. What key should I put it in? I
know these keys run when a user logs on:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersio
n\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion
\Run
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersio
n\RunOnce
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion
\RunOnce

So I think I would put it in one of these two:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersio
n\ RunServices
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersio
n\ RunServicesOnce

I'm on Windows 2000. What one though do I put it in?
Probably the first (out of the last 2) would be my guess.
 
T

Torgeir Bakken (MVP)

jon said:
I want a script of mine to run when the computer boots but
not when someone logs on. What key should I put it in? I
know these keys run when a user logs on:
(snip)

Hi

How to enable computer startup script (Win2k/WinXP Pro):

From the Start menu Run dialog, open: gpedit.msc

Then, under "Computer Configuration",
open Windows Settings\Scripts (Startup/Shutdown)
(double click on "Startup", Add...).


More info in Tip 2147 in the 'NT Reg Hacks' at http://www.jsiinc.com

JSI Tip 2147. Windows 2000 Startup/Shutdown, Logon/Logoff scripts?
http://www.jsiinc.com/sube/tip2100/rh2147.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top