遇到Win10/11 家庭版操作系统需要使用远程桌面,但家庭版操作系统不支持远程桌面,我们可以通过RDPWrap这个项目尝试让家庭版来支持远程桌面功能。
一、开放远程桌面端口
1、关闭防火墙,或者新建入站规则开放3389端口
2、也可使用其他端口,注册表中远程桌面端口的位置:
1 | 计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp |
PortNumber的十进制值即为远程桌面的端口
二、安装RDPWrap项目
1、下载最新RDPWrap,如RDPWrap-v1.6.2.zip
RDPWrap项目的地址:https://github.com/stascorp/rdpwrap/releases
压缩包内各文件的功能描述
File name | Description |
---|---|
RDPWInst.exe | RDP Wrapper Library installer/uninstaller |
RDPCheck.exe | Local RDP Checker (you can check the RDP is working) |
RDPConf.exe | RDP Wrapper Configuration |
install.bat | Quick install batch file |
uninstall.bat | Quick uninstall batch file |
update.bat | Quick update batch file |
2、解压后右键以管理员身份运行文件夹中的 install.bat,出现如下反馈表示已安装成功
1 | [*] RDP Wrapper Library is already installed. |
3、右键以管理员身份运行文件夹中的RDPConf.exe
在弹出的窗口中查看Diagnostics栏目,确认Wrapper state、Service state、Listener state三个条目的状态是否分别为:Installed、Running、Listening。
4、如果Listener state的状态为Not Listening,则再进行以下【5-8步骤】或者【9-12步骤】的操作
5、在以下地址下载rdpwrap.ini-master.zip:https://github.com/sebaxakerhtc/rdpwrap.ini
6、解压后复制替换到C:\Program Files\RDP Wrapper中
7、以管理员模式运行cmd终端,输入net stop termservice,然后net start termservice。重启远程服务
8、再次右键以管理员身份运行RDPConf.exe
在弹出的窗口中查看Diagnostics栏目,确认Wrapper state、Service state、Listener state三个项目的状态是否分别为:Installed、Running、Listening。
9、新建一个 bat 文件,并输入以下内容
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | @echo off & title 更新RDPWrap.ini set INI_Path="C:\Program Files\RDP Wrapper\rdpwrap.ini" set INI_Dir="C:\Program Files\RDP Wrapper" ::检查权限 setlocal enabledelayedexpansion>nul net session>nul if !ERRORLEVEL! EQU 2 ( set "args=!args: ="^&chr^(32^)^&"%!" set "args="/C"&chr(32)&chr(34)&chr(94)&chr(34)&"%~f0"" mshta "vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe", !args!, NULL, "runas", NULL)(window.close)"&&exit ) echo.正在停止远程桌面服务…… echo Y | net stop UmRdpService echo Y | net stop TermService ::删除旧配置文件 :DeleteFile del %INI_Path% if exist %INI_Path% ( echo.文件 %INI_Path% 仍被占用,请手动关闭占用该文件的程序。 start "" %INI_Dir% pause goto :DeleteFile ) echo.正在下载配置文件…… curl "https://raw.gitmirror.com/sebaxakerhtc/rdpwrap.ini/master/rdpwrap.ini">%INI_Path% echo.正在重启远程桌面服务…… C:\WINDOWS\System32\svchost.exe -k NetworkService net start TermService echo.更新完成!按任意键以结束。 pause>nul |
10、以ASCII 编码保存bat文件
11、右键以管理员身份运行bat文件
12、再次右键以管理员身份运行RDPConf.exe
在弹出的窗口中查看Diagnostics栏目,确认Wrapper state、Service state、Listener state三个项目的状态是否分别为:Installed、Running、Listening。