Jump to content

How to enable W2K08 Telnet Server from Command Line?


Recommended Posts

Posted

Can someone tell me how to enable telnet server in Windows Server 2008 **from the command line** if it has been installed but when you look in the services\properties for it it is disabled?

I've tried net start, servermanagercmd, and ocsetup and the command won't succeed because it's disabled. I've been able to make FTP server work but not telnet. Thanks very much.


Posted

Thanks, cluberti for your fast response. Let me elaborate:

Starting from an uninstalled situation, I get this, as expected:

C:\Users\Administrator>sc query telnet-server

[sC] EnumQueryServicesStatus:OpenService FAILED 1060:

The specified service does not exist as an installed service.

So I install it as you suggested:

C:\Users\Administrator>servermanagercmd -I Telnet-Server

Start Installation...

[installation] Succeeded: [Telnet Server].

<100/100>

Success: Installation succeeded.

Now I check the status:

C:\Users\Administrator>sc query telnet-server

[sC] EnumQueryServicesStatus:OpenService FAILED 1060:

The specified service does not exist as an installed service.

OK, looking in the services window I can see it has a new name:

C:\Users\Administrator>sc query tlntsvr

SERVICE_NAME: tlntsvr

TYPE : 10 WIN32_OWN_PROCESS

STATE : 1 STOPPED

WIN32_EXIT_CODE : 1077 (0x435)

SERVICE_EXIT_CODE : 0 (0x0)

CHECKPOINT : 0x0

WAIT_HINT : 0x0

Now the problem is to enable it, from the command line. How? Evidently

enabling is different than starting. What's the command for enabling?

C:\Users\Administrator>net start tlntsvr

System error 1058 has occurred.

The service cannot be started, either because it is disabled or because it has n

o enabled devices associated with it.

If I start it with the gui, I get the end result I want as shown below, but I need to do it with a script.

C:\Users\Administrator>sc query tlntsvr

SERVICE_NAME: tlntsvr

TYPE : 10 WIN32_OWN_PROCESS

STATE : 4 RUNNING

(STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)

WIN32_EXIT_CODE : 0 (0x0)

SERVICE_EXIT_CODE : 0 (0x0)

CHECKPOINT : 0x0

WAIT_HINT : 0x0

Thanks,

sealnose

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...