I am looking for a vbs to (auto login) to a telnet session so this
will need to login with both a user-name and password.
I don't have a VB Script solution but here is a batch file solution: It uses
nc.exe which you can download from here:
http://www.securityfocus.com/data/tools/nc11nt.zip. Type nc.exe -h to get
help.
Step 1
Create a batch file c:\Windows\MyTelnet.bat with the following lines inside:
@echo off
nc 192.168.1.99 23 < c:\Windows\MyTelnet.scr
{Adjust the IP address and the port number to suit your environment}
Step 2
Create a script file c:\Windows\MyTelnet.scr with the following lines
inside:
neilos
SomePassword
{put your telnet commands here}
exit
{Put a blank line here}
Step 3
Create a desktop shortcut that points to c:\Windows\MyTelnet.bat
Step 4
Test the shortcut you created.