Microsoft Developer Network > 포럼 홈 > Windows Forms General > Automatic login for Remote Desktop
질문하기질문하기
 

답변됨Automatic login for Remote Desktop

  • 2007년 12월 13일 목요일 오전 2:48MonkeyMark 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    Hi all,

     

    I would like some help in relation to Remote desktop. I was wondering if there was some console commands that cause Remote Desktop to run automatically enter in the username and password of a remote computer and then login. If it can't be done using the console, can it be programmed to automatically login (preferable in C++ or C#)?

     

    MonkeyMark

답변

  • 2007년 12월 18일 화요일 오전 5:23Yu Guo – MSFT 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨

    Hi,  MonkeyMark,

     

    Based on my understanding, you want to perform a auto login in your Remote Desktop, don't you?

     

    I think you should first open the Remote Desktop Connection application, input the server address, username and password.

    After that, you can save the configuration to a .rdp file.

    Actually, this file can be open with notepad.

    It is something like

    Code Block
    screen mode id:i:1
    desktopwidth:i:800
    desktopheight:i:600
    session bpp:i:16
    winposstr:s:2,3,482,159,1280,759
    full address:s:your server address
    compression:i:1
    keyboardhook:i:2
    audiomode:i:0
    redirectdrives:i:1
    redirectprinters:i:0
    redirectcomports:i:0
    redirectsmartcards:i:1
    displayconnectionbar:i:1
    autoreconnection enabled:i:1
    authentication level:i:0
    username:s:your user name
    domain:s:
    alternate shell:s:
    shell working directory:s:
    disable wallpaper:i:1
    disable full window drag:i:1
    disable menu anims:i:1
    disable themes:i:0
    disable cursor setting:i:0
    bitmapcachepersistenable:i:1
    password xxxxxxxx......xxxxxx


    The password is encrypted.

    Then you can start this .rdp file with

    Code Block

    System.Diagnostics.Process.Start("your rdp file path");

     

     

    More info

    http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.start.aspx

     

     

    Hope this helps,

    Regards

     

모든 응답

  • 2007년 12월 18일 화요일 오전 5:23Yu Guo – MSFT 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨

    Hi,  MonkeyMark,

     

    Based on my understanding, you want to perform a auto login in your Remote Desktop, don't you?

     

    I think you should first open the Remote Desktop Connection application, input the server address, username and password.

    After that, you can save the configuration to a .rdp file.

    Actually, this file can be open with notepad.

    It is something like

    Code Block
    screen mode id:i:1
    desktopwidth:i:800
    desktopheight:i:600
    session bpp:i:16
    winposstr:s:2,3,482,159,1280,759
    full address:s:your server address
    compression:i:1
    keyboardhook:i:2
    audiomode:i:0
    redirectdrives:i:1
    redirectprinters:i:0
    redirectcomports:i:0
    redirectsmartcards:i:1
    displayconnectionbar:i:1
    autoreconnection enabled:i:1
    authentication level:i:0
    username:s:your user name
    domain:s:
    alternate shell:s:
    shell working directory:s:
    disable wallpaper:i:1
    disable full window drag:i:1
    disable menu anims:i:1
    disable themes:i:0
    disable cursor setting:i:0
    bitmapcachepersistenable:i:1
    password xxxxxxxx......xxxxxx


    The password is encrypted.

    Then you can start this .rdp file with

    Code Block

    System.Diagnostics.Process.Start("your rdp file path");

     

     

    More info

    http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.start.aspx

     

     

    Hope this helps,

    Regards

     

  • 2007년 12월 24일 월요일 오전 12:38MonkeyMark 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     제안된 답변

    Cheers for the help, it proved most useful.

     

    MonkeyMark

    • 답변으로 제안됨pompido 2009년 5월 13일 수요일 오전 8:42
    •  
  • 2009년 5월 13일 수요일 오전 8:44pompido 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     제안된 답변

    Cheers for the help, it proved most useful.

     

    MonkeyMark


    I need Hack that can give Remote desktop Connection
    • 답변으로 제안됨pompido 2009년 5월 13일 수요일 오전 8:45
    •