Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Remote Desktop 'Start program on connection'

20 Apr 2010   #1
n8sl8er

Windows 7, RHEL4
 
 
Remote Desktop 'Start program on connection'

In the Remote Desktop Connection app (in Accessories) that comes with Windows 7, there is a tab called "Programs". Under that tab are two fields, "Program path and file name:", and "Start in the following folder". I'd like to use this option to start an initial program when I connect to a Windows 7 Enterprise RDP host.

* Windows XP RDP hosts support the option to start an initial program
* Windows Server 2003 terminal server hosts support the option to start an initial program
* Windows Server 2008 terminal server hosts support the option to start an initial program if you authorize the program (I can't remember which tool you use, but it had something to do with RemoteApp)
* I can't find a way to make Windows 7 Enterprise hosts support this option. Obviously, there's no RemoteApp host configuration since that's only on 2008 Server.

Has anyone else been able to start an initial program on a Windows 7 RDP host?

The reason I'm trying to do this is so that I can use SeamlessRDP (Cendio AB - SeamlessRDP) with rdesktop from a RHEL4 machine. I've tried this combination and it works under: Windows XP, Windows Server 2003, and Windows Server 2008.

Thanks,

Peter


My System SpecsSystem Spec
.
20 Apr 2010   #2
Jonathan_King

Windows 7 Professional x64
 
 

Welcome to SF!

Are either of these two things what you are looking for?

Remote Desktop 'Start program on connection'-capture.png

Remote Desktop 'Start program on connection'-capture1.png


My System SpecsSystem Spec
20 Apr 2010   #3
n8sl8er

Windows 7, RHEL4
 
 

Hi Jonathan,

Thanks for the reply. Yes. The first picture is what I'm using on the client machine. The host (RDP server) machine is running Windows 7 Enterprise. The problem I'm running into is that the host machine won't let me start an initial program when I specify one in the "Program path and filename" field.

If you connect to a Windows 7 RDP server and specify a program in the "Program path and file name field", does the program start for you?

The behavior I've observed under older Windows RDP hosts is that the program I specified will start, and the rest of the OS won't show in the background. This is what I'm looking for.

Thanks,

Peter
My System SpecsSystem Spec
.

20 Apr 2010   #4
Desslok

Windows 7
 
 

are you connecting with the /admin option?
My System SpecsSystem Spec
20 Apr 2010   #5
n8sl8er

Windows 7, RHEL4
 
 

No, I'm not using the /admin option.

I tried using the /admin option from the command line, but this doesn't help me since you can't also specify an option to run an initial program (as far as I can tell, this is only available from the GUI, not the command line), which is what I'm trying to do in the first place.

What purpose does the /admin option serve? On Windows XP, 2003 Server, and 2008 Server, I never had to specify the /admin option on the client to get initial apps working.

If the /admin option is required, I might be able to save a *.rdp file from the GUI (that includes the initial application option) and then specify /admin and the *.rdp file I created on the command line.
My System SpecsSystem Spec
21 Apr 2010   #6
n8sl8er

Windows 7, RHEL4
 
 

Sounds like this is a known bug with Vista:
Option to "Start the following program on connection" will only work if Terminal Services Role is installed

I suspect it's a bug in Windows 7 as well, then.
My System SpecsSystem Spec
05 Jun 2015   #7
NoMatterWho

Windows 7 Professional
 
 

So, everybody knows: itís a bug of Win7, You can use RemoteApp instead, but it works on Ultimate/Enterprise editions and so on, and so on, bla-bla-bla, right?
WRONG
You can use this simple registry tweak and start enjoy that wonderful option easily


Attached Files
File Type: reg Seamless RDP.reg (2.9 KB, 226 views)
My System SpecsSystem Spec
05 Jun 2015   #8
NoMatterWho

Windows 7 Professional
 
 

Just two words about editions of host machine: definitely it works on Enterprise, Ultimate & Professional editions and You donít need nothing else
I think it can be used in Home Premium edition too with a little tweak of system, but I didnít check it , so somebody with Home Premium have to make some experiments:
1.Itís rdclip.exe file which is absent in that edition. Please keep on mind, there isnít any tweak or something else strange with it: itís simple standard file of Windows 7. You should to unpack and copy it into Windows\System32 folder.


Attached Files
File Type: zip rdpclip.zip (88.9 KB, 89 views)
My System SpecsSystem Spec
05 Jun 2015   #9
NoMatterWho

Windows 7 Professional
 
 

2. After copying rdclip.exe, run cmd.exe as Administrator and start commands one by one (second command should be inputted in one line with only once ENTER pressing in the very end)

NETSH advfirewall firewall delete rule name="Remote Desktop (TCP-In)"

NETSH advfirewall firewall add rule name="Remote Desktop (TCP-In)" program=System profile=public,private,domain dir=in localport=3389 protocol=tcp action=allow description="Inbound rule for the Remote Desktop service to allow RDP traffic."

It should force Windows firewall to open RDP port which one is closed by default.

P.S. Registry tweak supports tweaked termsrv.dll or RDP Wrapper with 10 sessions at once, but one can use original termsrv as well (but it will be possible one session of RDP, of course)
My System SpecsSystem Spec
27 Jul 2015   #10
sealts

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by NoMatterWho View Post
So, everybody knows: it’s a bug of Win7, You can use RemoteApp instead, but it works on Ultimate/Enterprise editions and so on, and so on, bla-bla-bla, right?
WRONG
You can use this simple registry tweak and start enjoy that wonderful option easily
Thank you very much! Works fine on Windows 8.1 Pro!
My System SpecsSystem Spec
Reply

 Remote Desktop 'Start program on connection'




Thread Tools




Similar help and support threads
Thread Forum
Identifying remote computer for Remote Desktop Connection
Remote Desktop Connection wants the IP or name of the remote computer to connect to. But suppose the remote computer is behind a router. The router has one WAN IP, say 192.45.63.98, which will be the same for all the computers connected off of that router, (when you google "my ip" from any of...
Network & Sharing
Remote Desktop Connection RDC/RDP - maybe not
Since foxint and I might be exploring alternatives to RDC/RDP... ...I thought it best to split the discussion from this thread. @foxit, wow - sorry that you have not gotten this working like you need. Now that I know what you are wanting to do, I'm a torn between helping you continue down this...
Network & Sharing
Remote desktop connection help
Hello I am running a lite version of windows 7 32bit in which the dev took off remote desktop. I have looked everywhere but cant find a guide to reinstalling it. Any help would be great, here is the error when I try to run MSTSC: http://img836.imageshack.us/img836/6255/screenqk.png
Network & Sharing
Can't use remote desktop connection - Need help
Hi all. I'm running two computers in WLAN both have Win7 Ultimate 64bit. I've noticed that if I want to have remote desktop connection, I must have a password as a user on both computers while I don't want to have a password when I use the remote desktop connection. Can someone help me please...
Network & Sharing
Remote Desktop Connection
Hi Everyone, I have two dell hybrid computers with windows 7 home edition and on Windows XP home edition. Idealy I would like to be able to Remote desktop Connection from the XP machine to both the Windows 7 machines. However currently I cant even get both the windows seven machines to RDP to...
Network & Sharing
Remote Desktop Connection
So I am having an issue with Remote Desktop Connection. First, here is what I am running. I am using my laptop to connect to my desktop upstairs. The laptop is a Dell Inspiron E1505 Centrino Duo with 2 Gb of Ram. The laptop is running Windows 7 RC1 32 bit. I am connected wireless to my home...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 19:37.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App