sealnose Posted October 25, 2008 Posted October 25, 2008 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.
cluberti Posted October 25, 2008 Posted October 25, 2008 I believe you have to manually install it and dependencies via servermgr:Servermanagercmd –I Telnet-Server
sealnose Posted October 25, 2008 Author Posted October 25, 2008 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-ServerStart 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 tlntsvrSERVICE_NAME: tlntsvr TYPE : 10 WIN32_OWN_PROCESS STATE : 1 STOPPED WIN32_EXIT_CODE : 1077 (0x435) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0Now 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 tlntsvrSystem error 1058 has occurred.The service cannot be started, either because it is disabled or because it has no 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 tlntsvrSERVICE_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 : 0x0Thanks,sealnose
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now