Solved

running an .EXE befor logon on 3.51WKS

Posted on 1997-07-04
4
230 Views
Last Modified: 2013-12-28
dos any one know the registry key for running an .EXE
befor user logon?
(On win95 the key is
 Local_machine/softwere/micro$oft/wondows/curentVertion/run
 -or .../runonce .../runservice .../runserviceonce
 but on nt it is differnt.)
0
Comment
Question by:etamir
  • 3
4 Comments
 
LVL 2

Accepted Solution

by:
gantriis earned 120 total points
ID: 1779519
Hi etamir.

Usually you would write a Windows NT service that will be set to start automatically in order to accomplish this.

However, the Windows NT resource kit contains a utility - SRVANY - that will help you to run a usual .EXE or .BAT file as a service. This means that the file can be set to start execute before any users logs on to the system.

The resource kit files you will need are:
SRVANY.WRI: Documents what you should do.
SRVANY.EXE: Helps you run a usual EXE as a service.
INSTSRV.EXE: Helps you install the SRVANY service.

I have copied a few useful points from the SRVANY.WRI file below:

The benefits of SRVANY include:
- allow apps to survive logoff/logon sequences, hence saving the overhead of re-starting them for each new user
- allow server apps to come-up and service requests even when no user is logged-on
- allow apps to run and perform a task in a specific logon account, different from the currently logged-on user

Installation:

- Copy SRVANY.EXE to your system and install it as a Windows NT service, for example:
      INSTSRV MyService c:\tools\srvany.exe
- configure via the Services applet ("Startup..." dialog) of the Control Panel as manual or automatic, as appropriate.
- set via the Services applet ("Startup..." dialog) of the Control Panel the account for the service. If you need access to the screen & keyboard, you must choose the LocalSystem account and click the "Allow Service to Interact with Desktop", otherwise choose any account and specify the correct logon password. Note that the LocalSystem account doesn't have network access.

Specifying the application to start & its parameters:

Run the Registry Editor (REGEDT32.EXE):
- under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService: create a 'Parameters' key
- under the above key, create an 'Application' value of type REG_SZ and specify there the full path of your app executable (including the extension). For example:
       Application: REG_SZ: D:\TOOLS\VI.EXE
 - OPTIONAL: under the above key, create an 'AppParameters' value of type REG_SZ and specify the parameters for your app. For Example:
      AppParameters: REG_SZ: C:\TMP\FOO
- OPTIONAL: under the above key, create an 'AppDirectory' value of type REG_SZ and specify the current directory to use for the app, eg:
      AppDirectory: REG_SZ: C:\TMP


Hope this answers your question.

Cheers
JG
0
 

Author Comment

by:etamir
ID: 1779520
thanks!
can you just Email me SRVANY.WRI, SRVANY.EXE and NSTSRV.EXE ?
or at least tell me where I can get them.
I do not have a way to get the Windows NT resource kit.
I will apreciate it if you could send me the files..
my work Email is <eliezer at actcom.co.il> and I can dounload very big files if nessesry.
0
 

Author Comment

by:etamir
ID: 1779521
Adjusted points to 125
0
 

Author Comment

by:etamir
ID: 1779522
Thanks for the answer !
0

Featured Post

Why are Office 365 signatures so complicated?

Trying to setup transport rules for Office 365 email signatures and can’t quite figure it out? Having to test the signature over and over? Make things simple by using Exclaimer Cloud - Signatures for Office 365.

Question has a verified solution.

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

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

914 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

18 Experts available now in Live!

Get 1:1 Help Now