Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input Telnet command

Status
Not open for further replies.

ajtsystems

IS-IT--Management
Jan 15, 2009
80
GB
Hi,

I am a noob to Powershell but have some experience in VBScript. I need to know if its possible to telnet into a port (any) and then login. So far I have managed to create a telnet session unsing a cmd shell, but would like to steer away from CMD if possible. are there any other objects in PS that can do this. My code so far...:

$tel = $textbox1.text;
$f = New-Object -com wscript.shell
$f.run("Telnet.exe $tel")
 
Take a look at this example for doing a telnet SMTP test with PowerShell.


I hope that helps.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top