User Logon Script Help Needed

  • Thread starter Charles E Finkenbiner
  • Start date
C

Charles E Finkenbiner

Hi All,

I have a program that I want to be sure is loaded whenever a user logs
into Win2000 Pro SP4 (all updates installed).

I can not just put the program in the startup folder because this could
cause multiple instances of the program to run, the program does not
check to see if it is already running. So, I wrote a VBScript to handle
the job. The script works great on its own.

The problem is that when I placed the script in the user logon startup
section of 'Group Policy' it seems to load the program only during
logon. Once logon is complete the program is not running. I use
WScript.Run to execute the program.

I know how to setup a script to run as a service but since the program
places an icon in the system tray and the user interacts with the
program by opening this icon I can't use the service method.

How do I load a program during user logon that will still be loaded once
user logon is complete?


Thanks for any help,

Charles
 
R

Roger Abell [MVP]

Why would starting the program from login script result
in multiple instances running? The user only logs in once
per login session, the program would not already be running
as the user is just then frreshly logging in.
I am puzzled at your reasoning.

That said, you indicated use of wscript.run to state the app,
but wscript object has no run method, so I assume you did
mean you are using the run method of the WshShell object.
That is good, as you did not mistakenly use the exec method.
I am not sure what you have happening, at least if you are
using the WshShell objects run method with its defaults for
the wait on return argument.
Does this work as expected via login script on XP or later?
The reason I ask is that without having decided to update it
the wsh binaries on W2k would be old/outdated.
Have you asked in the newsgroup
microsoft.public.windows.server.scripting ?

Roger
 

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