XP SP2 官方版 termsrv.dll 封鎖並行連線,需替換為 SP2 Build 2055 版(允許並行)並修改登錄啟用 EnableConcurrentSessions。
termsrv.dll(.dl_ 改 .zip 解壓)。C:\Windows\System32\termsrv.dllC:\Windows\System32\dllcache\termsrv.dllreg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Licensing Core" /v EnableConcurrentSessions /t REG_DWORD /d 1 /f@echo off
net stop sharedAccess
ntsd -c q -p
reg add HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon /v KeepRASConnections /t REG_SZ /d 1 /f
reg add HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server /v fDenyTSConnections /t REG_DWORD /d 0 /f
reg add HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Licensing Core /v EnableConcurrentSessions /t REG_DWORD /d 1 /f
reg add HKLM\SYSTEM\CurrentControlSet\Services\TermService\Parameters /v ServiceDll /t REG_EXPAND_SZ /d %SystemRoot%\system32\termsrvhack.dll /f
copy termsrvhack.dll %SystemRoot%\system32\dllcache\termsrvhack.dll
attrib +h +s +r %SystemRoot%\system32\dllcache\termsrvhack.dll
copy termsrvhack.dll %SystemRoot%\system32\termsrvhack.dll
attrib +h +s +r %SystemRoot%\system32\termsrvhack.dll
shutdown -a
del termsrvhack.dll
net start termservice
注意:需先取得 TermService PID(tasklist /svc),且需 termsrvhack.dll 修補版。此法風險極高,僅供技術研究。
替換 termsrv.dll + 登錄 EnableConcurrentSessions=1 是 XP 啟用多使用者並行連線的經典做法,但屬破解行為,請評估風險後再行實施。