Windows 7 RDP Won't Run Program PT 2

Hello Experts,

I have configured GPO to run cmd.exe when it connects, as shown below:
rere
Unfortunately, it won't run.

I have run the command gpresult /r and get the results shown in the attachment.

Can some one please let me know what I'm doing wrong

Cheers

cpatte7372
rdp8.txt
cpatte7372Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cpatte7372Author Commented:
Hello

Can I get some help please?
0
cpatte7372Author Commented:
Administrators,

Can I please request attention with this question?
0
Randy DownsOWNERCommented:
What errors are you getting? Is there something you want to run from CMD prompt?
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Lionel MMSmall Business IT ConsultantCommented:
is the Win7 gpo or a domain GPO? I tested it on a domain and I can't get it to run either; did you try anything else to startup?
0
cpatte7372Author Commented:
Hi Experts,

I'm not getting any errors.

I have also tried starting up mspaint, no luck
0
Randy DownsOWNERCommented:
I am a little confused as to why you want to run CMD.
0
cpatte7372Author Commented:
Randy,

I don't really want to run cmd. I was just using that as a test to run an application when an RDP session starts up.

Cheers
0
Randy DownsOWNERCommented:
Maybe this will help.

You can also configure whether a program or the desktop appears when the user logs on to a remote session by applying the following Group Policy settings:
Start a program on connection

Always show desktop on connection

These Group Policy settings are located in the following locations:
Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Remote Session Environment

User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Remote Session Environment

These Group Policy settings can be configured by using either the Local Group Policy Editor or the Group Policy Management Console (GPMC).
noteNote
These Group Policy settings will take precedence over the settings configured in Remote Desktop Session Host Configuration. If both the Computer Configuration and the User Configuration policy settings are configured, the Computer Configuration policy settings take precedence. Also, the Always show desktop on connection policy setting will take precedence over the Start a program on connection policy setting.
0
cpatte7372Author Commented:
Hi Randy,

I tried your suggestion exactly as described, but no luck.

Have you ever got it to work?

Cheers
0
Randy DownsOWNERCommented:
No I have not personally used the method. If you can be more specific on what you want to accomplish maybe we can find an alternative.
0
Lionel MMSmall Business IT ConsultantCommented:
I have also tried to get something, anything to start and I too can't get it to work on my server either--must be some kind of MS glitch. I do start some programs in my logon scripts with statements like
if %username%==bob or if %computername%==win7 then I start a programs with a "start" command if you think you will find that functional. Examples
If %COMPUTERNAME% == Randy "C:\Program Files\Windows NT\Accessories\wordpad.exe" "\\%Server%\PublicFolder\Passwords\Randy.rtf"
or
If %UserName% == Danielle RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n "HP 4300 dtn"
1
cpatte7372Author Commented:
Randy, I'm just trying to start a program when a RDP session starts. I used the example of cmd.exe or mspaint.exe as programs to test.

Lionel, thanks for responding. Do you mean something like shown in the image?
frgtf
0
Lionel MMSmall Business IT ConsultantCommented:
No I was trying to show you a different way to start a program when users logon other than using this GPO which neither you or I can get to start a program.
1
cpatte7372Author Commented:
Hi Lionel,

I need to be able to run a program or batch file when I establish a RDP connection
0
Randy DownsOWNERCommented:
Maybe this will work.

All I did was to add the bat file, the vbs script and wscript.exe to remote applications in remoteapp manager and it all works ok
0
cpatte7372Author Commented:
Hi Randy,

Thanks I will give it a go and let you know how I get on...

Cheers
0
cpatte7372Author Commented:
Hi Randy,

Where can I find the 'Remoteapp Manager'

Cheers
0
Lionel MMSmall Business IT ConsultantCommented:
The remote desktop connection has a tab that allows you to stipulate which program you want it to start on connection
0
cpatte7372Author Commented:
Hello Experts,

I have now configured the RDP as follows: but still no luck in activating mspaint.

hyh
Help would be greatly appreciated.

Cheers
0
Lionel MMSmall Business IT ConsultantCommented:
0
cpatte7372Author Commented:
Thanks lionel. Going to give it a go shortly. I will let you know how I get on.

Cheers
0
cpatte7372Author Commented:
Hi Lionel,

I can't find '(tsconfig.msc),' taken from the link provided ... uhhhmmmmmm
0
cpatte7372Author Commented:
Lionel,

The link is for windows 2008. I'm running Windows 7 Professional
0
Lionel MMSmall Business IT ConsultantCommented:
This management console is on the server you are trying to connect to--the remote desktop server you want to connect to. All this time I have been assuming you are on a win7 pc trying to connect to a server and that you have been working on the gpo of the server--is that wrong--have you been working on the gpo of your win7 system, local grouo policy?
0
Randy DownsOWNERCommented:
It looks like RemoteApp is also for Server 2008.

Remote App Manager

You can set up RemoteApp and Desktop Connection on a computer that is running Windows 7 either by providing a URL or by using a configuration file from the administrator. For more information about creating a configuration file, see Create a Client Configuration File for RemoteApp and Desktop Connection.

Use the following procedures to set up RemoteApp and Desktop Connection on a computer that is running Windows 7. Repeat the procedures for each connection that you want to set up.
0
Lionel MMSmall Business IT ConsultantCommented:
Yes remoteapp mgr is a server based product/service
0
cpatte7372Author Commented:
remoteapp mgr is a server based product/service

So, the link you provided won't help?
0
Randy DownsOWNERCommented:
Sorry it doesn't help without Server 2008
0
cpatte7372Author Commented:
So am I stuffed?
0
Randy DownsOWNERCommented:
I don't see a way to run a program without a server involved.
0
Lionel MMSmall Business IT ConsultantCommented:
what do you want to have happen--when you remote onto a server you want program xyz to start or when you remote onto your Win7 system from another system for a program xyz to start? What is connecting to what?
0
cpatte7372Author Commented:
Hi Lionel,
I would like
when you remote onto your Win7 system from another system for a program xyz to start?
0
Lionel MMSmall Business IT ConsultantCommented:
OK on the other PC, system what are you using to connect to your Windows 7 PC? Remote Desktop Connection from Microsoft?
0
cpatte7372Author Commented:
Remote Desktop Connection from Microsoft?
Correct
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Lionel MMSmall Business IT ConsultantCommented:
OK so start RDC click on show options, then on the tabs on top click on Programs, then enter in that space the properties for the program you want started on the remote computer (the one you will connect to). You can then click "Save as" in the General tab so that it will save that info so you can use it again when you want to w/o having to enter this information each time. Hope that works for you; if not let me know.
0
cpatte7372Author Commented:
Hi Lionel,

Sorry for the late response.
I followed your instructions, see image.

Unfortunately, it didn't work.add
0
Lionel MMSmall Business IT ConsultantCommented:
it has to work--where did you do this?
0
cpatte7372Author Commented:
Cheers
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.