Sign in to follow this  
Followers 0
impradee2007

Remote Windows

5 posts in this topic

#1 ·  Posted (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 by Jos
removed userid/password

Share this post


Link to post
Share on other sites



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. >_<

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

I'd like to know that to . I need to add a remote computer to a domain. ??????

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