Advertisement
metalx1000

Install and Start Telnet Server on Windows

Nov 12th, 2017
1,092
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.82 KB | None | 0 0
  1. REM set Administrator's password to 1234 (probably don't want to really use 1234)
  2. net user administrator 1234
  3.  
  4. REM install service
  5. start /w pkgmgr /iu:"TelnetServer"
  6.  
  7. REM enable service
  8. sc config TlntSvr start= auto
  9.  
  10. REM Enable password logins.
  11. tlntadmn config sec +passwd
  12.  
  13. REM change mode to stream (better for Linux login)
  14. tlntadmn config mode=stream
  15.  
  16. REM start service
  17. net start TlntSvr
  18.  
  19. REM add user to telnet group
  20. net localgroup TelnetClients /add [username]
  21.  
  22. REM check which users are in TelnetClient Group
  23. net localgroup TelnetClients
  24. REM note the username here and Domain if available
  25.  
  26. REM install client
  27. start /w  pkgmgr /iu:"TelnetClient"
  28.  
  29. REM Now try and login.  The username will need the domain if used
  30. REM example MyDomain\username
  31.  
  32. REM to find service name
  33. sc query type= service state= all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement