Sign in to follow this  
Followers 0
Krol

RDP Methods & Properties

11 posts in this topic

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)

GUISetState()

$oRDP.Server = "SERVERNAME"

$oRDP.Domain = "DOMAIN"

$oRDP.UserName = "USERNAME"

$oRDP.Connect()

While 1

$msg = GUIGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE

ExitLoop

EndSelect

WEnd

GUIDelete()

Exit

I try:

$oRDP.Server = "server"

$oRDP.Domain = "domain"

$oRDP.UserName = "administrator"

$oRDP.PortablePassword ="BLAHBLAH"

$oRDP.Connect()

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



plz help :)

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

Mike


Share this post


Link to post
Share on other sites

WOW! GREAT! 10x Larry

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)

Thanks.

Share this post


Link to post
Share on other sites

Sorry I do not understand. You can explain? :">

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

$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

You are right, it is simple now me have interested these Events

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  
Followers 0