Here is more information on how to run KeepRAS as a service (courtesy of Paul Sterley)
- Obtain srvany.exe and srvinstw.exe from the Windows NT/2000 Resource Kit.
- Modify keepras.ini as desired to specify hosts to ping
- Copy keepras.exe, keepras.ini, and srvany.exe into <systemroot>\system32
- Run srvinstw.exe. Choose "Install a service" and click Next.
- Choose "Local Machine" and click Next.
- Type a service name (recommend KeepRAS) and click Next.
- Type the path to srvany.exe (e.g. c:\winnt\system32\srvany.exe) and click Next.
- Choose "Service is its own process" and click Next.
- Choose "System Account" and check the "Allow service to interact with desktop" and
click Next.
- Choose "Automatic", click Next, and click Finish.
-
You should see a window stating "The Service Was Successfully Installed".
- Run Registry Editor and go to the following path:
HKLM\SYSTEM\CurrentControlSet\Services
- Look for the service name you entered in step 7 and select it.
- Right-click your key name and choose New->Key. Type "Parameters" for the key
name.
- Select the "Parameters" key you just created.
- Right-click your Parameters key and choose New->String Value. Type "Application"
for the string name. This should be a REG_SZ string.
- Double-click the "Application" string you just created.
- Type the path to keepras.exe in the Value Data field (e.g. c:\winnt\system32\keepras.exe)
You're done. Open the Services applet and start your new service.
Note: KeepRAS does not seem to process a batch file when running in this mode, even
if you specify one in the INI file.
Update: This may have been fixed in the 1.0.0.9 version.
Last modified Tuesday, November 21, 2006
lac@sedivy.com
|
|
|