We have a program that sits on a server and should always be running, but it is important that only one instance of it should be running. We added a registry key in 'HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Run' so that it would run on startup.
However, we are getting a problem when multiple users log into the server over remote desktop - an instance is starting for each user. How can we get it so that it starts only once, no matter how many users are logged in?