Networking Forums

Networking Forums > Computer Networking > Windows Networking > Win Server 2003 and RDP

Reply
Thread Tools Display Modes

Win Server 2003 and RDP

 
 
Trevor
Guest
Posts: n/a

 
      04-28-2008, 10:11 PM
I have a application running on a Windows Server 2003 system that does NOT
run as a service and requires that a user is logged on in order for it to
run. Everything works fine however when I remote desktop into the system with
the same user that is logged on, it starts a second instance of all the
programs that that user is running. How do I prevent the applications from
starting up a second time when I RDP in? Or how can I ensure that only one
instance of the user can run at a time and if it is already running, to not
allow other instances to connect or login?

Setting the application to run as a service is NOT an option so please do
NOT recommend that.

Any assistance is appreciated.
 
Reply With Quote
 
 
 
 
leew [MVP]
Guest
Posts: n/a

 
      04-29-2008, 03:04 AM
Trevor wrote:
> I have a application running on a Windows Server 2003 system that does NOT
> run as a service and requires that a user is logged on in order for it to
> run. Everything works fine however when I remote desktop into the system with
> the same user that is logged on, it starts a second instance of all the
> programs that that user is running. How do I prevent the applications from
> starting up a second time when I RDP in? Or how can I ensure that only one
> instance of the user can run at a time and if it is already running, to not
> allow other instances to connect or login?
>
> Setting the application to run as a service is NOT an option so please do
> NOT recommend that.
>
> Any assistance is appreciated.


I assume you have this starting via a shortcut in the startup folder or
possibly through a registry setting.

In either case, if you create a batch file, substituting the executable
name for "calc" (which I used in the example), you should be able to
ensure only one copy starts.

@echo off
tasklist | find /i "calc.exe"
If "%errorlevel%"=="1" "calc.exe"
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote connection Server 2003 to Server 2003 Sandy Windows Networking 2 08-13-2007 03:50 PM
TCP/IP Stack Improvements in Windows Server 2003 and Windows Server 2003 Service Pack 1 Deepak Bansal [MS] Windows Networking 0 06-14-2005 01:14 AM
Webcast on TCP/IP Stack Improvements in Windows Server 2003 and Windows Server 2003 Service Pack 1 Deepak Bansal [MS] Windows Networking 0 06-13-2005 11:55 PM
SP1 Broke my Server 2003 with Exchange server 2003 Backup Windows Networking 3 04-22-2005 05:34 AM
Windows WPA Client does not Install in Server 2003 or SBS Server 2003 John Holmblad Windows Networking 10 01-21-2004 12:39 AM



1 2 3 4 5 6 7 8 9 10 11