Jump to content

How to stop running multiples instances of startup program when multiple login is done.

xmac's Photo
Posted Feb 18 2013 12:06 AM
1385 Views

I'm using Windows Server 2003 and I have a command to be executed on start-up. This command will be executed only if a Administrator logs-in. But since many users are using this Server with same Administrator account (using Remote Desktop) The start-up program will get triggered on each login creating a new instance of the program.
Is there a way I can set the server not to Run the program if its already executing on another Administrator session ?

1 Reply

0
  Nick_IRL's Photo
Posted Mar 08 2013 06:21 PM

Hi,

I guess that since you might have sorted your problem.
However just in case :) if multiple sessions of the same account are running, you should not use the startup to run 'program' or Command (cmd/bash file) but you the run key From the registry base on the hklm (hkey local machine)

Cheers.