Jump to content
Sign in to follow this  

Connect to Mikrotik Router

Recommended Posts



Is there anyway to connect to Mikrotik Router using AutoIT? What I want to do is connect to the mikrotik router and release the ip address. Usually I do this manually through WinBox, but I would like to automate it using AutoIT.

Thanks in advance.


Share this post

Link to post
Share on other sites


i connected... start

$user = "root"
$password ="xxxxxxxx"
$host =""
$port ="22"

$puty_exe = @ScriptDir & "\putty.exe"; putty salve local folder script

; putty -ssh -l usuario p "port" -pw senha


$command = RunWait(@comspec & " /C "&$puty_exe&" -ssh -l "&$user&" "&$host&" p "&$port&" -pw "&$password,@SystemDir, @SW_HIDE, 1)

While 1
$data = StdoutRead($command)
If @error Then ExitLoop
Edited by bhns


Att...Cleber Antônio Made in Bio zonte Minas Gerais  :sweating:

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.