Solved

running an .EXE befor logon on 3.51WKS

Posted on 1997-07-04
4
239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Storage Server 2012 R2 Standard 2 81
RDP exploit 13 19
The different types of Windows 10 7 44
Windows 2008 Server Mouse Stops 3 11
An article on effective troubleshooting
Configuring Remote Assistance for use with SCCM
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

738 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