Discussion Locked

Run a program on login

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

I am looking for a way to run a program the first time a person logs on tto a machine. I just want to run it once (when the profile is created) and not run the next time that person logs in.

What I am trying to do is the use the OpenOffice server installation and workstation installation. This requires the main program to be installed by an admin and then a client install on every user account.

Thanks,

J. Paulsen
IT Coordinator
Frederic School District

6 replies

by w2ktechman

leave the path to the program in this registry key
HKLM\software\microsoft\windows\currentversion\runonce\

by jhoup

Are your clients running 2K or XP and is the Installer an MSI? If so, you can do the following:

1) Add a Registry Key to each Workstation that will point to the install. (You can do this using the REG command)
2) Set the Domain Policy to Elivate Install Rights.

Example: (Copy, Paste and Edit)
REG ADD hkcu\Software\Microsoft\Windows\CurrentVersion\RunOnce\ /v NewAPP /t REG_EXPAND_SZ /d "\\SERVER\NETLOGON\Install.msi"

or

You can just add the install to Group Policy under:
User Configuration
-Software Settings
--Software Installation

You will still need to set the elivated prevlidges for this. Otherwise, you will need to use the RUNAS command at each workstation one by one.

by paulsenj

It is an .exe and it installs only in the user profile so no permission adjustment should be needed.

I am curious as to the format of the registry key answer. Could you provide an example of how it should look?

Thanks

This discussion is closed to new replies.