impradee2007 Posted August 7, 2009 Share Posted August 7, 2009 (edited) Hi, How to handle Remote connection with Auto It. I am using this below script, but its not working. please help me out in editing the script Run("mstsc.exe /console") Sleep(2000) Send ("10.250.14.120") ; Send('netsh 172.21.105.20') ; Send('netsh ..'172.21.105.20'') Send("{enter}") WinWaitACtive("Log On to Windows","User Name")----This line of script is failing send("{TAB}") Send("IN\xxxxx") Send("{TAB}") Send("yyyy") Send("{enter}") ; Legal Banner WinWaitActive("Legal Banner") ControlClick("Legal Banner", "[CLASS:Button; TEXT:OK; Instance:1;]") ; WinWait("Legal Banner") Send("{enter}") Sleep(1800000) ; Run the CPM QA Run("C:\Documents and Settings\kumaris\Desktop\CPM QA.lnk") ;Send("{enter}") WinWaitActive("Logon") Send("xxxx") Send("{TAB}") Send("yyyy") Send("{TAB}") Send(zzzz") Send("{enter}") WinWaitActive("Logon") Send("xxxx") Send("{TAB}") Send("yyyy") Send("{enter}") Edited August 7, 2009 by Jos removed userid/password Link to comment Share on other sites More sharing options...
dot45 Posted August 7, 2009 Share Posted August 7, 2009 Hi, How to handle Remote connection with Auto It. I am using this below script, but its not working. please help me out in editing the script Run("mstsc.exe /console") Sleep(2000) Send ("10.250.14.120") ; Send('netsh 172.21.105.20') ; Send('netsh ..'172.21.105.20'') Send("{enter}") WinWaitACtive("Log On to Windows","User Name")----This line of script is failing send("{TAB}") Send("IN\un*******unt") Send("{TAB}") Send("********") Send("{enter}") ; Legal Banner WinWaitActive("Legal Banner") ControlClick("Legal Banner", "[CLASS:Button; TEXT:OK; Instance:1;]") ; WinWait("Legal Banner") Send("{enter}") Sleep(1800000) ; Run the CPM QA Run("C:\Documents and Settings\kumaris\Desktop\CPM QA.lnk") ;Send("{enter}") WinWaitActive("Logon") Send("k*****") Send("{TAB}") Send("******") Send("{TAB}") Send("*****") Send("{enter}") WinWaitActive("Logon") Send("******") Send("{TAB}") Send("******") Send("{enter}") Please remove your username and password from your post. >_< Tools I've Created & Shared[/url][url="http://www.autoitscript.com/forum/index.php?showtopic=97177&st=0&p=698665&hl=printer&fromsearch=1&#entry698665"]Printer Migration Tool Link to comment Share on other sites More sharing options...
Krikov Posted August 7, 2009 Share Posted August 7, 2009 Hi You can use the command line switch of the mstsc take a look : --------------------------- Remote Desktop Connection Usage --------------------------- MSTSC [<connection file>] [/v:<server[:port]>] [/admin] [/f[ullscreen]][/w:<width> /h:<height>] [/public] | [/span] [/edit "connection file"] /migrate] "connection file" -- Specifies the name of an .rdp file for the connection. /v:<server[:port]> -- Specifies the remote computer to which you want to connect. /admin -- Connects you to the session for administering a server. /f -- Starts Remote Desktop in full-screen mode. /w:<width> -- Specifies the width of the Remote Desktop window. /h:<height> -- Specifies the height of the Remote Desktop window. /public -- Runs Remote Desktop in public mode. /span -- Matches the remote desktop width and height with the local virtual desktop, spanning across multiple monitors if necessary. To span across monitors, the monitors must all have the same height and be aligned vertically. /edit -- Opens the specified .rdp connection file for editing. /migrate -- Migrates legacy connection files that were created with Client Connection Manager to new .rdp connection files. Hope this will help you Krikov [topic="63488"][font="Arial"]Krikov Tray Quick Menu[/font][/topic] Link to comment Share on other sites More sharing options...
impradee2007 Posted August 9, 2009 Author Share Posted August 9, 2009 Hi, Thanks a lot, the command line switch of mstsc is working for my script. One more question. I have script which connects to remote machine, after this i need to do some operation in Remote machine Is it possible? if so let me know how? Thanks in advance. Link to comment Share on other sites More sharing options...
BoogY Posted August 12, 2009 Share Posted August 12, 2009 I'd like to know that to . I need to add a remote computer to a domain. ?????? 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