Current location - Quotes Website - Collection of slogans - How to force 3389 remote port to restart automatically?
How to force 3389 remote port to restart automatically?
If the terminal service in the server is not enabled or stopped unexpectedly, and it happens that the server is in urgent need of remote management, the only way is to re-enable the service. In order to make better use of this service to remotely manage the server, this paper introduces in detail different methods of enabling remote terminal service from both local and remote perspectives.

Modified attribute method

In fact, this method is to modify the system properties of the terminal service and change its startup type from "disabled" to "automatic". The specific operation steps are as follows:

Click Start and Run in turn, and run the command "services.msc" to enter the system service list interface; In the right pane area of the interface, find and double-click the "Terminal Service" service to open the property setting interface of the service; Click the Start button, set the start type of the service to Automatic, and then click OK to complete the activation of the remote terminal service. Of course, you can also enable the Telnet service in the system service list interface.

Even if you are not local to the server, you can remotely modify the service attribute of Terminal Services in the server through the system console window, thus remotely starting the server terminal services. When starting the server terminal service remotely, you only need to execute the "mmC" command at the remote workstation, open the console window of the local system, click the "File" and "Add/Delete Snap-in" commands in turn, and click the "Add" button to import the "Service" snap-in; Select "Another computer" in "This snap-in has been managing", enter the IP address of the server, and then click the "Finish" button. Finally, we can modify the properties of the "terminal service" service according to the previous method, and we can realize the purpose of enabling the server terminal service remotely.

Method for edit registry

The method realizes the purpose of enabling the remote terminal service by modifying the registry subkey related to the remote terminal service:

Click the "Start" and "Run" commands in turn, and run the command "regedit" to enter the system registry editing window; Expand the registry branch HKEY _ Local _ Machine System Current Control Settings Service. In the right pane area corresponding to the sub-item of $ TermService, find and double-click the "Start" key, open the value setting dialog box of this key, enter the number "2" in it, click "OK", then restart the server system and enable the remote terminal service in the server.

The above method is only executed locally on the server. In fact, the terminal service in the server can also be opened in the remote workstation in this way. In the remote workstation system, you should also open the system running dialog box, enter the registry editing command "regedit", and click "OK" to enter the system registry editing window. In this window, click File in the menu bar, click Connect Network Registry, and then enter the account and password with access to the server registry in the pop-up server password verification dialog box. After successfully logging in, modify the "Start" key value under the $ TermService subitem according to the previous method. Once the server system is restarted in the future, the terminal service in the server can take effect.

Difference and connection between terminal service and remote desktop

By default, Terminal Services is not installed in the operating system, and can be installed by adding or removing Windows components if necessary. The function of terminal service is to facilitate multiple users to operate the server with terminal service in the network together, and all operations and operations are placed on the server.

Terminal service and remote desktop are both components of Windows system, both developed by Microsoft. Through these two components, users can control and operate the server at the other end of the network, and running the program is as simple and fast as manipulating the local computer.

Remote Terminal Services allows multiple clients to log on to the server at the same time. Both device authorization and user authorization require cal client to access authorization certificate, while remote desktop management only provides a graphical interface for operators and administrators to manage remote access servers (the interface is the same as remote terminal services), and no CAL license certificate is required. Remote Desktop only allows two administrators to log in at most, and there is no limit to terminal services. Remote Desktop can only allow users with administrator rights to log in, but Terminal Services does not have this restriction. Users with any permissions can remotely control the server through terminal services, but their permissions are consistent with their own after logging in.

Borrowing external force method

This method uses the unattended installation program in the Windows 2000 system installation CD to start the server terminal service:

First, find the Windows 2000 system installation CD and put it in the CD of the local computer. Open the 1386 folder in the installation CD, find the file named "sysocmgr.ex", release it with Winrar or other compression software, and then copy the released target file directly to the "system32" folder under the local system installation directory;

Enter the computer where the server is located, open the Notepad text editing program, and enter the following command code in the editing interface:

The following is a code snippet:

[component] TSEnabled=on

Save as "c: install $ TERM" Txt "file; Go back to the computer where the file "sysocmgr.ex" is saved, click the "Start" and "Run" commands in turn, then enter "cmn" in the pop-up system running box, and click "OK" to switch the system working state to MS-DOS mode; Execute telnet XXX. XXX.XXX.XXX "command (where xxx.xxx.xxx is the IP address of the computer where the server is located), and then correctly enter the account and password to access the server and log in to the server; Then execute the command "sysocmgr.exe/I: x: winningfsysoc.inf/u: c: setup $ TERM.txt/q" (where x is the disk partition symbol where the server operating system is located), and finally restart the server system to complete the operation of enabling remote terminal services. From Feng Ying League (www. fengying. org)- Details link:/613.html.