1下载并安装RDPWrap
双击install.bat即可完成安装。
2安装后或系统升级后会发现远程桌面不能正常使用
此时本地找不到3389监听端口:
netstat -ano |find "3389"
另外,打开D:\devSoft\RDPWrap-v1.6.2\RDPCONF.EXE后,会发现Listener state显示**Not Listening**。
注:每次系统升级后远程桌面都会不能正常使用,需要执行以下步骤修复。
2.1 查看当前版本号
右键C:\Windows\System32\termsrv.dll-属性-详细信息-文件版本
如10.0.18362.1533
2.2 在rdpwrap.ini中新增相应版本号的内容
在以下两个链接中搜索10.0.18362.1533:
/asmtron/rdpwrap/blob/master/res/rdpwrap.ini
或/stascorp/rdpwrap/issues?q=is%3Aissue+is%3Aopen+10.0.18362.1533
将搜索到的[10.0.18362.1533]和
[10.0.18362.1533-SLInit]对应的内容
添加到C:\Program Files\RDP Wrapper\rdpwrap.ini最下面,最后一行要留空行。
[10.0.18362.1533]LocalOnlyPatch.x86=1LocalOnlyOffset.x86=B67C6LocalOnlyCode.x86=jmpshortLocalOnlyPatch.x64=1LocalOnlyOffset.x64=83075LocalOnlyCode.x64=jmpshortSingleUserPatch.x86=1SingleUserOffset.x86=35735SingleUserCode.x86=nopSingleUserPatch.x64=1SingleUserOffset.x64=0DC4CSingleUserCode.x64=ZeroDefPolicyPatch.x86=1DefPolicyOffset.x86=4D679DefPolicyCode.x86=CDefPolicy_Query_eax_ecxDefPolicyPatch.x64=1DefPolicyOffset.x64=1FE65DefPolicyCode.x64=CDefPolicy_Query_eax_rcxSLInitHook.x86=1SLInitOffset.x86=5C18ASLInitFunc.x86=New_CSLQuery_InitializeSLInitHook.x64=1SLInitOffset.x64=22E9CSLInitFunc.x64=New_CSLQuery_Initialize[10.0.18362.1533-SLInit]bInitialized.x86 =D377CbServerSku.x86 =D3780lMaxUserSessions.x86 =D3784bAppServerAllowed.x86 =D378CbRemoteConnAllowed.x86=D3790bMultimonAllowed.x86 =D3794ulMaxDebugSessions.x86=D3798bFUSEnabled.x86 =D379CbInitialized.x64 =F6A8CbServerSku.x64 =F6A90lMaxUserSessions.x64 =F6A94bAppServerAllowed.x64 =F6A9CbRemoteConnAllowed.x64=F6AA0bMultimonAllowed.x64 =F6AA4ulMaxDebugSessions.x64=F6AA8bFUSEnabled.x64 =F6AAC
注意: 最后一行一定要空行。
2.3 重启Remote Desktop Services
运行 - services.msc
重启动Remote Desktop Configuration 后,即可生效
2.4 确认远程桌面是否可以正常使用
再次打开D:\devSoft\RDPWrap-v1.6.2\RDPCONF.EXE,Listener state会显示Listening,问题解决。
telnet 127.0.0.1 3389
netstat -ano |find "3389"