Jump to content
Sign in to follow this  

RDP Methods & Properties

Recommended Posts

Anybody know, how i can autologin?

#include <GUIConstants.au3>

$oRDP = ObjCreate("MsTscAx.MsTscAx")

GUICreate("Embedded RDP control Test", 640, 480, -1 , -1, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)

$GUIActiveX = GUICtrlCreateObj($oRDP, 10, 10, 620, 460)



$oRDP.Domain = "DOMAIN"

$oRDP.UserName = "USERNAME"


While 1

$msg = GUIGetMsg()


Case $msg = $GUI_EVENT_CLOSE






I try:

$oRDP.Server = "server"

$oRDP.Domain = "domain"

$oRDP.UserName = "administrator"

$oRDP.PortablePassword ="BLAHBLAH"


but error: The requested action with this object has failed.

I have found only these parameters of the password, but I can not use not one

propterty PortablePassword

propterty PortableSalt

propterty BinaryPassword

property BinarySalt

Method ResetPassword

How? Can you help, please?

RDP Methods & Properties

Share this post

Link to post
Share on other sites

If the RDP COM object works the same as the .rdp files then you are out of luck. That field is not expecting an actuall password, it's expecting a Password Hash string which would be different on every computer that runs this.

See my old post for more info. RDP


Share this post

Link to post
Share on other sites

I have a new problem. It is necessary to send a combination of keys to a window of the terminal, but from bad connection and different login time - it is impossible :)

There are methods But how them to use?

Sub OnConnecting

Sub OnConnected

Sub OnLoginComplete

Sub OnDisconnected (ByVal discReason As Long)


Share this post

Link to post
Share on other sites

$oRDP.Connected return 1 if connect, but system login occupies still certain time (on a miscellaneous), and mine script sends pressing buttons before Desktop show :)

I simply wished to find out if is Sub OnLoginComplete why it cannot be used?

Edited by Krol

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...