Log on to the Remote Desktop Connection (go to the DOS black window) | Allow Remote Desktop to support multiple users

Source: Internet
Author: User
Tags call shell

Log on to the Remote Desktop Connection

1. Create a directory for storing logs and monitoring programs in one location. For example, I create an RDP directory under drive C.

2. Create a text file named rdplog.txt under its Directory

3. Create a batch file named RDPlog. bat in its directory with the following content:
Date/t> RDPlog.txt
Time/t> RDPlog.txt
Netstat-n-p tcp | find "ESTABLISHED" | find ": 3389"> RDPlog.txt
Rem start Explorer

4.1, 2003:
Go to "Terminal Server Configuration" in system management tools and enter the default RDP-Tcp attribute,
Switch to the "Environment" Page and enable "enable the following programs during user logon"
Enter C: \ RDP \ rdplog. bat in the program path and file name, and enter C: \ RDP \
4.2. XP:
Open "group policy ".
In "Computer Configuration", "management template", "Windows components", and "Terminal Services,
Double-click "Start Program at connection" and click "enable ".
In the "program path and file name" box, type the path and file name of the program to be started when the user logs on.
In the "working directory" box, type the desired working directory and click "OK ".


After completing the preceding configuration steps, the time and IP address of the current logon user are recorded when you log on to the server again.

NETSTAT [-a] [-B] [-e] [-n] [-o] [-p proto] [-r] [-s] [-v] [interval]
-A displays all connection and listening ports.
-B shows the executable components that contain each connection or listening port. In some cases, it is known that the executable component has multiple unique nodes.
In these cases, the component sequence that includes creating a connection or listening port is displayed. In this case, you can
The Execution Component name is in [] at the bottom, and the component called at the top is known as TCP/IP. Note this option
It may take a long time. If you do not have sufficient permissions, it may fail.
-E displays Ethernet statistics. This option can be combined with the-s option.
-N: the address and port number are displayed in numbers.
-O displays the ID of the process associated with each connection.
-P proto shows the connection of the Protocol specified by proto. proto can be one of the following protocols: TCP, UDP, TCPv6
Or UDPv6.
If used with the-s option to display statistics by Protocol, proto can be one of the following protocols:
IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6.
-R shows the route table.
-S displays statistics by protocol. By default, IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or
UDPv6 statistics;
The-p option is used to specify the default subset.
When used together with option-B, components that contain connection or listening ports are displayed for All executable components.
Interval re-displays the selected statistics. The pause interval between each display (in seconds ). Press CTRL + C to stop
Re-display statistics.
If omitted, netstat displays the current configuration information (only once ).


But every time I log on, there will be a DOS black window flashing, which is very uncomfortable. How can I remove it?
1. Create a script file named RDPLog. vbs in the original directory. The content is as follows:
Set shell = Wscript. Createobject ("wscript. shell ")
Call shell. run ("C: \ RDP \ RDPLog. bat" 0)
2. Go to "Terminal Server Configuration" in the system management tool and enter the default RDP-Tcp attribute.
3. Switch to the "Environment" Page and enable "enable the following programs during user logon"
4. Enter wscript C: \ RDP \ RDPLog. vbs in the program path and file name, and enter C: \ RDP \
In addition, we would like to remind you that if you want to record the access time and IP address every time you log on to the Remote Desktop, You must select "logout" to log off each time you exit the Remote Desktop.


Remote Desktop supports multiple users Windows XP does not support simultaneous logon of multiple users to the Remote Desktop. When other users remotely log on to Windows XP, the users currently logged on to the host will automatically exit. However, Windows XP SP2 provides the allow connection session concurrency function, which allows multiple users to log on simultaneously through remote desktop. However, this feature is disabled by default, you must modify the Registry to enable this function. 1. Open the Registry Editor and expand the branch "HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Control \ Terminal Server \ Licensing Core" to the right window, create a subkey of DWORD type and name it "EnableConcurrentSessions" And set the key value to "1" to enable multi-user logon.
Or run add. reg to import the registry. Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server \ Licensing Core]
"EnableConcurrentSessions" = dword: 00000001

2. Restart WinXP to enter safe mode and rename termsrv. dll under C: \ Windows \ System32 to termsrv. dll. bak.
3. Copy the termsrv. dll.2055 file to C: \ Windows \ System32 and change it to termsrv. dll.
4. restart the computer. Create an account for Remote logon and add the account to the "Remote Desktop Users" group.
5. You can also choose "my computer", click "remote", click "Allow Remote Desktop", click "select remote user", and add the newly created account.
6. Success. If you log out immediately after remote logon, you can increase the Logon account permission.
Termsrv. dll.2055 download

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.