Windows Server TechCenter > Windows Server Forums > Terminal Services > RDP start pogram on connection (WIN 2008 Server)
Ask a questionAsk a question
 

AnswerRDP start pogram on connection (WIN 2008 Server)

  • Wednesday, October 21, 2009 8:09 AMjesperbrh Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I am calling a script via a rdp session on a 2003 sever. This script changes the password on the server to a variable I am sending with the session.
    This works fine. But on a Windows 2008 I can’t even start the script on the remote sever. I tried stating notepad but nothing works, the only thing that happens is that the session logs on to the Windows 2008 Sever.

     

    So it is the -start a program- part of the windows 2008 serve I  am having poblemt with.

     

    This has nothing with TS remot Apps to do.

    But instead mstsc.exe  

Answers

  • Friday, October 23, 2009 10:54 AMLionel Chen - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hello,

     

    As I don’t know the exact script content or the working process of it, I cannot ensure the root cause of this issue.

     

    However, based on my experience with similar issues, a possible cause of the problem is related to a new security feature since Windows Server 2003 SP1. In such a situation, please refer to the following KB article and use both the Method 1 and Method 2 to change the registry on your Windows Server 2008 host:

     

    (KB 926642) Error message when you try to access a server locally by using its FQDN or its CNAME alias after you install Windows Server 2003 Service Pack 1: "Access denied" or "No network provider accepted the given network path"

    http://support.microsoft.com/kb/926642

     

    If this is not your case, please include more details about the script. Thanks.

     

    Best Regards,

    Lionel Chen

All Replies

  • Friday, October 23, 2009 10:54 AMLionel Chen - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hello,

     

    As I don’t know the exact script content or the working process of it, I cannot ensure the root cause of this issue.

     

    However, based on my experience with similar issues, a possible cause of the problem is related to a new security feature since Windows Server 2003 SP1. In such a situation, please refer to the following KB article and use both the Method 1 and Method 2 to change the registry on your Windows Server 2008 host:

     

    (KB 926642) Error message when you try to access a server locally by using its FQDN or its CNAME alias after you install Windows Server 2003 Service Pack 1: "Access denied" or "No network provider accepted the given network path"

    http://support.microsoft.com/kb/926642

     

    If this is not your case, please include more details about the script. Thanks.

     

    Best Regards,

    Lionel Chen

  • Tuesday, November 03, 2009 1:26 PMjesperbrh Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:EN-US; mso-fareast-language:EN-US;} @page Section1 {size:612.0pt 792.0pt; margin:3.0cm 2.0cm 3.0cm 2.0cm; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->

    thanks for your reply


    My problem is not the script.

    In 2003 I can start a program using rdp file

    (run mstsc /options /start the following program on connection)

     

    I can’t get this to work on a windows 2008 server. It just boots the OS