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.