This is only known to work in XP Pro.
Make a restore point !
Open Notepad.
Copy & Paste the red lettering into notepad.
Do a "Save as"
Name it whatever you like.
Select "All files" in the file-type drop-down box.
Use .reg as the file extention
Double-click the file you just saved, choose Yes to merge into your registry.
You will need to have termsrv.dll and perfts.dll in the windows\system32 folder.
If terminal service does not apear in your group policy editor after a re-start, then there will be additional steps to finalize the repair.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService]
"ErrorControl"=dword:00000001
"ObjectName"="LocalSystem"
"Start"=dword:00000004
"Description"="Allows multiple users to be connected interactively to a machine as well as the display of desktops and applications to remote computers. The underpinning of Remote Desktop (including RD for Administrators), Fast User Switching, Remote Assistance, and Terminal Server."
"DisplayName"="Terminal Services"
"DependOnService"=hex(7):52,00,50,00,43,00,53,00,53,00,00,00,00,00
"Type"=dword:00000020
"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
00,76,00,63,00,68,00,6f,00,73,00,74,00,20,00,2d,00,6b,00,20,00,44,00,43,00,\
6f,00,6d,00,4c,00,61,00,75,00,6e,00,63,00,68,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService\Parameters]
"ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
74,00,65,00,72,00,6d,00,73,00,72,00,76,00,2e,00,64,00,6c,00,6c,00,00,00
"Certificate"=hex:01,00,00,00,01,00,00,00,01,00,00,00,06,00,5c,00,52,53,41,31,\
48,00,00,00,00,02,00,00,3f,00,00,00,01,00,01,00,e5,45,24,31,ec,8b,98,86,eb,\
c8,2b,21,c3,e1,31,81,91,58,dc,33,06,73,a8,aa,bd,cb,d8,6d,a4,51,37,fa,8e,00,\
19,30,78,61,66,66,5e,93,65,1f,0b,11,ba,d2,a1,13,fe,4b,53,96,b6,55,4a,ec,47,\
86,e7,42,27,b4,00,00,00,00,00,00,00,00,08,00,48,00,62,44,de,b8,1e,ab,d4,7a,\
20,30,c0,64,ec,2c,4d,8f,41,b8,99,17,ee,d9,6e,69,52,6e,3a,41,35,27,91,d9,b7,\
81,57,f0,76,26,1f,f0,6c,d7,a2,9e,47,82,a6,ae,fe,88,63,7c,d0,e2,48,1f,42,84,\
22,ae,47,59,ee,58,00,00,00,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService\Performance]
"Close"="CloseTSObject"
"Collect Timeout"=dword:000003e8
"Collect"="CollectTSObjectData"
"Open Timeout"=dword:000003e8
"Open"="OpenTSObject"
"Library"="perfts.dll"
"Last Counter"=dword:00000886
"Last Help"=dword:00000887
"First Counter"=dword:00000806
"First Help"=dword:00000807
"Object List"="2054 2176"
"Library Validation Code"=hex:00,20,7c,22,cb,2b,c1,01,00,30,00,00,00,00,00,00
"WbemAdapFileSignature"=hex:7e,fd,21,14,ea,d1,ac,72,34,26,10,d7,19,2b,fb,32
"WbemAdapFileTime"=hex:00,20,7c,22,cb,2b,c1,01
"WbemAdapFileSize"=dword:00003000
"WbemAdapStatus"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService\Enum]
"0"="Root\\LEGACY_TERMSERVICE\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001