Results 1 to 6 of 6

Thread: rdp auto connect with username and password ?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2011
    Posts
    467

    rdp auto connect with username and password ?

    Hi, i have been searching all night and looked at loads of examples ect but can not find what i need.

    Basically I have several RDP connections that i work from. I need to test the connections every now and again.

    I can use tcp client to connect to iport and if if its online but that just wont do.

    What i need to do is connect to each rdp, pass the username and password and it will connect then login auto. Once loged in, it will tell me logged in.

    It then needs to logout and go to the next rdp ip and repeat the above.

    It also need to tell me if it failed to login, then i can manually check that rdp.

    This is because a couple of the rdp's have several user on them that i set, i need to make sure that none have changed the password as some have root access as we all work on the safe files there ect. We use the rdp to WFH(work from home).

    How would i go about doing this ?

    Thanks

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: rdp auto connect with username and password ?

    There is a remote desktop control that I have used in the past for this type of thing

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2011
    Posts
    467

    Re: rdp auto connect with username and password ?

    Quote Originally Posted by Grimfort View Post
    There is a remote desktop control that I have used in the past for this type of thing
    So basically this is a web based RDP connection that basically runs the microsoft RDP ?

    So if i add this to a webserver then I myself and others can use it ?

    Im not sure how this is going to work or if it would work, i also dont see how or where i can pass the varibles(login info) from with in the vb.net app, also would it work with httpwebrequests since it uses activex ?

    Thanks

  4. #4
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: rdp auto connect with username and password ?

    I didn't read too far into that link, maybe the version I suggested is web only (but it does say scriptable...) however there is an Rdp control that you can code with, that you pass details in to connect. I have an app that logs into a terminal, runs an app and disconnects, to test out the user response time for the app, ie what the user experiences. Just do a bit of googling, should be enough examples out there. (second quick search)

  5. #5
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: rdp auto connect with username and password ?

    I've used RDP for a long time - many ways - VPN, locally - and a couple of years ago with OWA.

    If you are talking about OWA - then it's not web based at all - it's the regular old MSTSC.exe program - just using some kind of https-who-knows-what-port tunnel made up after you initiate a connection with the OWA web page.

    Have you used standard RDP - like the one you get when you go into START/RUN and type MSTSC.

    Initiate one of your RDP sessions manually - go into TASKMGR - do you see MSTSC running?

    If so - then it's not some kind of WEB RDP. That would be what LOGMEIN and JOIN.ME are doing...

    Please clarify

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2011
    Posts
    467

    Re: rdp auto connect with username and password ?

    Quote Originally Posted by Grimfort View Post
    I didn't read too far into that link, maybe the version I suggested is web only (but it does say scriptable...) however there is an Rdp control that you can code with, that you pass details in to connect. I have an app that logs into a terminal, runs an app and disconnects, to test out the user response time for the app, ie what the user experiences. Just do a bit of googling, should be enough examples out there. (second quick search)
    Yes, I have also used the Microsoft Terminal Services Control and yes that works fine, however for 1 connection its good or even 2 or 3. But with multiple connections its going to cause problems. ATM i only have several RDP's to connect to but we are planning on buying more servers(more RDP's).

    So the Microsoft Terminal Services Control would not be any good for like lets say 20 rdps. I was thinking about a listbox, for each item in the listbox to make a connection, login then logout, display a message saying login sucessful or sothehing.

    I have even tryed the Remote Desktop Connection the start menu and messing with the .rdp file but you can not specify the password in there.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width