在 Windows 10 上安装 rdpwrap 有困难(以获得多个远程桌面连接)

bar*_*lop 4 remote-desktop windows-10

RDP Wrap 有助于允许多个连接到远程桌面,例如 Windows 7 或 Windows 10。我尝试将 rdpwrap 安装到https://github.com/stascorp/rdpwrap/并尝试在“发布”下运行 MSI,RDPWInst -v1.6.2.msi 并且它给出了一些错误,当我尝试重新安装它时我没有错误并且不清楚我要运行什么或者如果安装了任何东西会怎样。也没有并发/同时远程桌面。

然后我尝试卸载它,它提示我允许运行 c:\windows\installer\c4d5253.msi。我说是。它说“这个Windows安装程序包有问题”。

注意-我有一个解决方案并将发布答案。

bar*_*lop 6

如果你去https://github.com/stascorp/rdpwrap/,三种方式尝试下载该程序。从代码选项卡下载代码。或者,在发布选项卡下,下载 MSI 文件。或者,也在发布选项卡下,下载 zip。

在这些方法中,我使用的有效方法是转到发布选项卡,然后在那里下载 Zip。所以,不是代码选项卡,不是那个 zip。而不是发布的 MSI。但是 zip 下发布。RDPWrap-v1.6.2.zip

然后,将该 zip 解压缩到某个目录。启动 cmd 提示符以管理员身份运行。所以是一个管理 cmd 提示。(从那里你可以运行 install.bat 这比在常规 cmd 提示符下并右键单击 install.bat 并在 bat 上执行 runas 更好,因为显然这可能有问题)。

提取 zip 产生

C:\rdpwrap>dir
 Volume in drive C has no label.
 Volume Serial Number is C811-E477

 Directory of C:\rdpwrap

03/05/2020  15:34    <DIR>          .
03/05/2020  15:34    <DIR>          ..
03/05/2020  15:34               458 install.bat
03/05/2020  15:34         1,045,504 RDPCheck.exe
03/05/2020  15:34         1,096,192 RDPConf.exe
03/05/2020  15:34         1,460,224 RDPWInst.exe
03/05/2020  15:34               249 uninstall.bat
03/05/2020  15:34               249 update.bat
               6 File(s)      3,602,876 bytes
               2 Dir(s)  440,941,117,440 bytes free

C:\rdpwrap>
Run Code Online (Sandbox Code Playgroud)

您不需要直接运行 RDPWinst.exe,bat 文件会使用正确的开关/选项运行它。

从管理 cmd 提示符运行 install.bat

C:\rdpwrap>install
RDP Wrapper Library v1.6.2
Installer v2.5
Copyright (C) Stas'M Corp. 2017

[*] Notice to user:
  - By using all or any portion of this software, you are agreeing
  to be bound by all the terms and conditions of the license agreement.
  - To read the license agreement, run the installer with -l parameter.
  - If you do not agree to any terms of the license agreement,
  do not use the software.
[*] Installing...
[*] Terminal Services version: 10.0.17134.706
[-] This version of Terminal Services is not supported.
Try running "update.bat" or "RDPWInst -w" to download latest INI file.
If it doesn't help, send your termsrv.dll to project developer for support.
[+] TermService found (pid 8592).
[*] No shared services found.
[*] Extracting files...
[+] Folder created: C:\Program Files\RDP Wrapper\
[*] Downloading latest INI file...
[+] Latest INI file -> C:\Program Files\RDP Wrapper\rdpwrap.ini
[+] Extracted rdpw64 -> C:\Program Files\RDP Wrapper\rdpwrap.dll
[*] Configuring service library...
[*] Checking dependencies...
[*] Checking CertPropSvc...
[*] Checking SessionEnv...
[*] Terminating service...
[*] Starting TermService...
[*] Configuring registry...
[*] Configuring firewall...
Ok.

[+] Successfully installed.
______________________________________________________________

You can check RDP functionality with RDPCheck program.
Also you can configure advanced settings with RDPConf program.

Press any key to continue . . .

C:\rdpwrap>
Run Code Online (Sandbox Code Playgroud)

所做的一件主要事情是制作这个目录和这些文件

C:\Program Files\RDP Wrapper\rdpwrap.ini
C:\Program Files\RDP Wrapper\rdpwrap.dll
Run Code Online (Sandbox Code Playgroud)

你可以运行uninstall.bat,但是你必须再次运行install.bat

C:\rdpwrap>uninstall
RDP Wrapper Library v1.6.2
Installer v2.5
Copyright (C) Stas'M Corp. 2017

[*] Uninstalling...
[+] TermService found (pid 3340).
[*] No shared services found.
[*] Resetting service library...
[*] Terminating service...
[*] Removing files...
[+] Removed file: C:\Program Files\RDP Wrapper\rdpwrap.ini
[+] Removed file: C:\Program Files\RDP Wrapper\rdpwrap.dll
[+] Removed folder: C:\Program Files\RDP Wrapper\
[*] Starting TermService...
[*] Configuring registry...
[*] Configuring firewall...

Deleted 1 rule(s).
Ok.

[+] Successfully uninstalled.

Press any key to continue . . .

C:\rdpwrap>
Run Code Online (Sandbox Code Playgroud)

但是你想安装它所以运行 install.bat

所以你现在在 \program files\rdp wrap 中有这两个文件

你可以试试

C:\rdpwrap\rdpconf
Run Code Online (Sandbox Code Playgroud)

这将告诉您您的c:\windows\system32\termsrv.dll(操作系统附带的)版本是否受您的支持c:\program files\rdp wrap\rdpwrap.ini

查看您的termsrv.dll 是什么版本(rdp wrap 不会也没有替换这个文件)。

您可以使用右键单击..properties,或者像我为了这篇文章而使用的命令行

C:\rdpwrap>wmic datafile where name="c:\\Windows\\System32\\termsrv.dll" get version
Version
10.0.17134.706
Run Code Online (Sandbox Code Playgroud)

您可以检查自己的 ini 文件是否支持它.. 在记事本中并编辑..查找并查看或

C:\rdpwrap>find "10.0.17134.706" "c:\Program Files\RDP Wrapper\rdpwrap.ini"

---------- C:\PROGRAM FILES\RDP WRAPPER\RDPWRAP.INI

C:\rdpwrap>
Run Code Online (Sandbox Code Playgroud)

不在那里

在这种情况下有一些版本但不是我的版本

C:\rdpwrap>find "10.0.17" "c:\Program Files\RDP Wrapper\rdpwrap.ini"

---------- C:\PROGRAM FILES\RDP WRAPPER\RDPWRAP.INI
[10.0.17004.1000]
[10.0.17017.1000]
[10.0.17025.1000]
[10.0.17035.1000]
[10.0.17046.1000]
[10.0.17063.1000]
[10.0.17004.1000-SLInit]
[10.0.17017.1000-SLInit]
[10.0.17025.1000-SLInit]
[10.0.17035.1000-SLInit]
[10.0.17046.1000-SLInit]
[10.0.17063.1000-SLInit]

C:\rdpwrap>
Run Code Online (Sandbox Code Playgroud)

rdpconf.exe 会说“不支持”

不幸的是,与项目捆绑在一起的 ini 文件很旧。

有一个 update.bat 但它得到一个旧的 ini 文件,该文件不支持许多 termrv.dll 版本。

所以你必须去 github 页面查看问题或拉取,看看你是否可以获得一个包含你的构建版本的 ini 文件。

为了替换,c:\program files\rdp wrap\rdpwrap.ini您必须停止“远程桌面服务”服务,以便解锁ini,然后替换它,然后启动它。您可以从 services.msc 中看到它称为 TermService。你可以sc queryex termservice 看看它是否正在运行。s(sc queryex 比 sc query 'cos sc queryex 显示 pid 好一点)。如果它卡在“停止”状态,您可以执行 net start termservice、net stop termService 和 taskkill。

然后你可以运行 rdpconf.exe 看看它是否说成功..(而不是“不支持”)。您甚至可以在(重新)启动终端服务之前使用 rdpconf

然后你可以做 rdpcheck,看看是否显示“有限连接”,或者它是否正常工作。(或者您可以使用 mstsc 进行测试,但 rdpcheck 的测试速度非常快)

然后你知道并希望它对你有用。