Solved

Remote Desktop Shortcut to Windows 2008 Server Not Working

Posted on 2010-09-14
10
910 Views
Last Modified: 2012-06-27
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?  
0
Comment
Question by:K A
  • 5
  • 5
10 Comments
 
LVL 7

Expert Comment

by:simonseztech
ID: 33678454
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/
0
 

Author Comment

by:K A
ID: 33680821
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?
0
 
LVL 7

Expert Comment

by:simonseztech
ID: 33682663
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
0
Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

 

Author Comment

by:K A
ID: 33704334
Thanks, but still no go.  
0
 
LVL 7

Accepted Solution

by:
simonseztech earned 250 total points
ID: 33705972
Is using remote app an option for you ?

Remoteapp only give remote application screen not the whole desktop...
0
 
LVL 7

Expert Comment

by:simonseztech
ID: 33705978
0
 

Author Comment

by:K A
ID: 33706061
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?
0
 
LVL 7

Expert Comment

by:simonseztech
ID: 33706274
If it work on remote desktop it will work in remoteapp
0
 

Author Comment

by:K A
ID: 34429844
Sorry, I clicked on my own response as the solution accidentally.  The correct solution should be 33705972.
0
 

Author Closing Comment

by:K A
ID: 34431108
Thank you... RemoteApp = AOK
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

To effectively work with Diskpart on a Server Core, it is necessary to write some small batch script's, because you can't execute diskpart in a remote powershell session. To get startet, place the Diskpart batch script's into a share on your loca…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question