Link to home
Start Free TrialLog in
Avatar of K A
K AFlag for United States of America

asked on

Remote Desktop Shortcut to Windows 2008 Server Not Working

We've got a Remote Desktop shortcut that would connect via RDP to a Windows 2003 server and then automatically run a batch file... this worked just fine when we were connecting to a Windows 2003 server.

Now, we're on a Windows 2008 server and it just won't run.  We get connected fine, and can run the batch file okay once we're connected, but we haven't been able to get it to run automatically from the RDP icon.  

It doesn't seem to be a user permissions thing since the user that we're logging in as is a member of Administrators... and we can run the batch file once we're already connected.

It's as if there's a setting in Windows 2008 that says: "Let this user login via RDP, but don't let them run any programs automatically."  Can you think of why this would be?  
Avatar of simonseztech
simonseztech
Flag of Canada image

Hi,I suggest configure user logon script to run the BAT file. You can configure Security Filter to control which user will run the script.Windows 7 and Windows 2008 R2 support PowerShell Logon script. For your information:Using Group Policy to Deploy a Windows PowerShell Logon Scripthttp://blogs.technet.com/b/heyscriptingguy/archive/2010/08/14/weekend-scripter-using-group-policy-to-deploy-a-windows-powershell-logon-script.aspxIt might be a pain to set it on each one, but you can try setting the"Run this program as an administrator" compatibility flag in theproperties for the batch file. You may also need to configure UAC foradministrators to elevate without prompting, http://www.howtogeek.com/howto/windows-vista/disable-user-account-controluac-for-administrators-only/
Avatar of K A

ASKER

Thanks for your reply, but the real problem seems to be that the "Programs" tab of the Remote Desktop Connection GUI just seems to have no effect whatsoever.  I can even put "explorer.exe" in the "Program Path and Filename" of the "Programs" tab and it just does nothing after connecting.  Even if I put gibberish in there like "asdfasdf" it still does nothing... not even an error message.

We're running Remote Desktop Services for Administration.  

I've changed the GPO under Remote Desktop Services to allow running all unlisted programs.

Our reason for needing to do this is:  we need to set up a remote desktop connection for a given user, but when they connect, we need them to be automatically routed to the application they are supposed to run.  We COULD set up a login script, but then this user would ALWAYS be routed to THIS application.  Also, there's ANOTHER application they need to run too, so we would like to have another RDP icon that directs them to THIS application.  (Incidentally, after they exit these applications, we need them to be logged out automatically.)

So the bottom line is:  the Programs tab of the RDP GUI seems to be totally non-functional.  Am I missing something here?
Use the UNC, i.e.

\\Server\Program File\MSOffice\MsAccess.exe

Or where ever your program is.

This should work just fine. Tell me if it's work
Avatar of K A

ASKER

Thanks, but still no go.  
ASKER CERTIFIED SOLUTION
Avatar of simonseztech
simonseztech
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of K A

ASKER

Can RemoteApp run an old DOS-based accounting system?  If we were trying to run something Windows-based like an Accedss database, maybe... but what about an old, flat-file, character-based accounting program?
If it work on remote desktop it will work in remoteapp
Avatar of K A

ASKER

Sorry, I clicked on my own response as the solution accidentally.  The correct solution should be 33705972.
Avatar of K A

ASKER

Thank you... RemoteApp = AOK