Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows XP 多使用者同時登入:終端服務破解版 Termsrv.dll 替換與登錄修改全紀錄

編輯:XP 系統基礎知識

目標:本地 + 多遠端使用者同時擁有獨立桌面

XP SP2 官方版 termsrv.dll 封鎖並行連線,需替換為 SP2 Build 2055 版(允許並行)並修改登錄啟用 EnableConcurrentSessions。

詳細步驟

  1. 安裝 SP2 正式版。
  2. 取得 Build 2055 termsrv.dll(.dl_ 改 .zip 解壓)。
  3. 以安全模式或其他可存取 XP 分區的系統啟動,備份並覆蓋兩處:
    C:\Windows\System32\termsrv.dll
    C:\Windows\System32\dllcache\termsrv.dll
  4. 正常啟動 XP,系統檔案保護提示還原 → 選「否」。
  5. 修改登錄:
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Licensing Core" /v EnableConcurrentSessions /t REG_DWORD /d 1 /f
    (可存為 .bat 執行)。
  6. 重開機生效。

免重開機批次腳本進階版(含 termsrvhack.dll)

@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 修補版。此法風險極高,僅供技術研究。

風險與法律提醒

  • 修改核心系統檔違反 EULA,可能導致系統不穩、安全更新失敗。
  • 生產環境請購買 Windows Server CAL 合法授權。
  • 微軟後續更新可能覆蓋修改,需重複操作。

結語

替換 termsrv.dll + 登錄 EnableConcurrentSessions=1 是 XP 啟用多使用者並行連線的經典做法,但屬破解行為,請評估風險後再行實施。

Copyright © Windows教程網 All Rights Reserved