Български | English | Spanish |
 

News

15.08.2016

 HIKVISION Authorised Installer

03.11.2016

deepXIT BlackHat EU, London

25.01.2016

[deep eSupport] by TeamViewer
Windows, MacOS, Linux, iPhone/iPad iOS, AndroidOS


Login

Advetising

Home :. FAQ :. Tips and Tricks :. Terminal Server Patch
 
Terminal Server Patch

Universal Terminal Server Patch
by deep

This patch will remove the Concurrent Remote Desktop sessions limit in termsrv.dll and allow multi-user login enabling two or more concurrent sessions if you have FAST USER SWITCHING enabled, and your windows is NOT in a domain.
Concurrent Remote Desktop Sessions allows you to connect through Remote Desktop to a system that someone else is logged on to, under a different or even the same user account, and access the system without kicking the other user off.

!!!Proceed at your own risk!!!

Windows XP SP1 / SP2 / SP3
Windows Vista SP1 / SP2
Windows 7

32bit(x86) / 64bit(x64) on all above OS is tested and working!

Important Directories:

%windir%\System32\dllcache
%windir%\ServicePackFiles\i386
%windir%\i386
%windir%\System32

STEP-BY-STEP Patch

1.On Folder Options ENABLE to view all system and hidden files temporary
2.STOP Remote Desktop Service
3.Navigate thru your %windir%\system32 folder
4.BACKUP termsrv.dll via CMD
COPY "%SystemRoot%\System32\termsrv.dll" "%SystemRoot%\System32\*.*.bak"
5.Take Ownership on file via CMD
takeown /a /f %SystemRoot%\System32\termsrv.dll
6.Grant administrators Rights on file via CMD
ICACLS %SystemRoot%\System32\termsrv.dll /Grant Administrators:F
7.PATCH (Require administrator rights. Right-click the exe file, select Run as Administrator)
8.Compare both termsrv.dll via Command Prompt (Start->Run->CMD)
fc/b termsrv.dll termsrv.dll.bak
-----------------------------------BELOW FOR WINDOWS XP-------------------------------
7.Click on Start Menu -> Run command and type gpedit.msc, follow by Enter to open up the Group Policy Editor.
8.Navigate to Computer Configuration -> Administrative Templates -> Windows Components -> Terminal Services.
9.Enable Limit Number of Connections and set the number of connections to 3 (or more). The setting allows more than one users to use the computer and logged on at the same time.
10.Ensure the Remote Desktop is enabled in System Properties’ Remote tab by selecting the radio button for Allow users to connect remotely to this computer.
11.Enable and turn on Fast User Switching in Control Panel -> User Accounts -> Change the way users log on or off.
-----------------------------------ABOVE FOR WINDOWS XP-------------------------------
12.Restart the computer normally.
13.Go to Step 1 to HIDE all system and hidden files
14.START Remote Desktop Service

Change Remote Desktop Port

Default Remote Desktop Port: 3389

For each computer you want to remotely connect to you have to configure each computer to listen to different ports to avoid port conflicts by changing the registry key in

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber

START > RUN > REGEDIT

Navigate thru:

HKEY_LOCAL_MACHINE > System > CurrentControlSet > Control > TerminalServer > WinStations > RDP-Tcp

Then locate the following registry subkey:

PortNumber

On the Edit menu, click Modify, and then on the Edit DWORD Value click Decimal which will show us the exact port number.

Note: To avoid conflict with other programs it is suggested to select a port between 49152 and 65535.

Now take that number you've chosen your computer to listen to and configure your router to port forward to that number

To connect to that computer your format will now be IP:Port
(ex. 222.222.222.222:1234) to connect to that specific computer behind the router

Important: If you have a firewall software running, that too has to be configured to allow communication to the port you opened in your router as well.

Registry Settings to enable Concurrent Remote Desktop sessions


Windows VISTA / 7

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
"fDenyTSConnections"=dword:00000000
"fSingleSessionPerUser"=dword:00000000


Windows XP

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
"fDenyTSConnections"=dword:00000000
"fSingleSessionPerUser"=dword:00000000

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"EnableConcurrentSessions"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"AllowMultipleTSSessions"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services]
"MaxInstanceCount"=dword:00000005

The original article without our modification and explanation can be found here:

http://deepxw.blogspot.com


Name: Patch-x86.exe
Type: application/x-msdownload
Size: 63.35 KB
Universal Terminal Server Patch x86
 

Name: Patch-x64.exe
Type: application/x-msdownload
Size: 79.85 KB
Universal Terminal Server Patch x64