Jump to content

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

Link to comment
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)


Link to comment
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
Link to comment
Share on other sites

  • 4 months later...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...