Q. 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:

Jerold Schulman

August 28, 2006

1 Min Read
ITPro Today logo in a gray background | ITPro Today

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 offsetlocalcall :Quiet>nul 2>&1set key=HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSLicensingfor /f "Tokens=*" %%a in ('REG QUERY %key%^|find /i "%key%"') do ( @echo REG DELETE "%%a" /F REG DELETE "%%a" /F)endlocalgoto :EOF:QuietNET 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.

 

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like