我思故我在我有我精彩--liangqihui

爱欲追而情已逝,子欲孝而亲不待。人生的困苦又怎能用一个难字囊尽百味
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
You receive 'The remote computer disconnected the session because of an error in licensing protocol' when you attempt to connect to a remote computer using Remote Desktop on a Windows XP Professional Edition?

When you attempt to connect to a remote computer using Remote Desktop on a Windows XP Professional Edition, you receive:

The remote computer disconnected the session because of an error in licensing protocol.

To resolve this behavior, I have scripted FixRDMSL.bat, which contains:

@echo off
setlocal
call :Quiet>nul 2>&1
set key=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing
for /f "Tokens=*" %%a in ('REG QUERY %key%^|find /i "%key%\"') do (
 @echo REG DELETE "%%a" /F
 REG DELETE "%%a" /F
)
endlocal
goto :EOF
:Quiet
NET START TERMSERVICE
To fix this behavior:

1. Open a CMD.EXE window.

2. Type FixRDMSL.bat, or the fully qualified file name, and press Enter.

3. Shutdown and restart Windows XP.