mohammadezazi Posted April 22, 2014 Share Posted April 22, 2014 (edited) Hi I've wrote a script to logon remote on my servers. I want to send the password also to server. so the logon must be done automatically. I've used this code: $oRDP = ObjCreate("MsTscAx.MsTscAx") GUICreate($SerName, @DesktopWidth-50, @DesktopHeight-70) $GUIActiveX = GUICtrlCreateObj($oRDP, 5, 5, @DesktopWidth-60, @DesktopHeight-80) GUISetState() $oRDP.Server = $SerName $oRDP.UserName = $UserName $oRDP.Connect() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd GUIDelete() Please help me to send password also. I couln't find solution for my problem in this forum There are several softwares that can send password. such "RemoteDesktop Manager", ... . But I want to do it by Autoit. Edited April 22, 2014 by mohammadezazi Link to comment Share on other sites More sharing options...
jguinch Posted April 22, 2014 Share Posted April 22, 2014 (edited) Not sure it is possible... ... in fact, really possible ! You can still temporarily add the credential to the credential manager (using Cmdkey.exe or WinApi CredWrite function), juste before the connection, and delete it after. It's not really clean, but can work. Edited April 22, 2014 by jguinch Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
sahsanu Posted April 22, 2014 Share Posted April 22, 2014 Please help me to send password also. Try adding this line (it works for me): $oRDP.AdvancedSettings2.ClearTextPassword = $Password Cheers, sahsanu Link to comment Share on other sites More sharing options...
jguinch Posted April 22, 2014 Share Posted April 22, 2014 Works for me, thanks sahsanu... I answered too quickly, I found the same time as you posted Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
mohammadezazi Posted April 22, 2014 Author Share Posted April 22, 2014 Tnxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx It works wery nice......... Thank you againnnnnnnnnnnnnn Link to comment Share on other sites More sharing options...
sahsanu Posted April 22, 2014 Share Posted April 22, 2014 Tnxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx It works wery nice......... Thank you againnnnnnnnnnnnnn You are welcome Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now