Hi ahmed9100 I have modified a little the  function  _ReadTerminal() with some timeout checking important: inside the telnet directory there is a file called telnet.ini, you have to control inside that file the presence of this parameter: Telnet_Redir=1 without the ; to test, if you run this script it should display a msgbox with the output of the telnet local command 'help' #include <Constants.au3> #autoit3wrapper_usex64=n ; runs the script in 32 bit program mode Global $tn ; this w