{"id":41786,"date":"2025-06-04T16:35:46","date_gmt":"2025-06-04T08:35:46","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/41786.html"},"modified":"2025-06-04T16:35:46","modified_gmt":"2025-06-04T08:35:46","slug":"windows-%e5%b9%b3%e5%8f%b0%e5%a6%82%e4%bd%95%e7%82%b9%e5%87%bb%e7%bd%91%e9%a1%b5%e4%b8%8a%e7%9a%84url-%e4%bc%9a%e6%89%93%e5%bc%80%e8%bf%9c%e7%a8%8b%e6%a1%8c%e9%9d%a2%e8%bf%9e%e6%8e%a5%e6%9c%8d","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/41786.html","title":{"rendered":"windows \u5e73\u53f0\u5982\u4f55\u70b9\u51fb\u7f51\u9875\u4e0a\u7684url ,\u4f1a\u6253\u5f00\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u670d\u52a1\u5668"},"content":{"rendered":"<\/p>\n<p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u81ea\u5b9a\u4e49\u534f\u8bae\u65b9\u6848&#xff08;Protocol Scheme&#xff09;\u5b9e\u73b0\u7f51\u9875\u4e0a\u70b9\u51fbURL\u540e\u81ea\u52a8\u542f\u52a8\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5&#xff08;mstsc&#xff09;&#xff0c;\u53c2\u8003\u4f60\u63d0\u4f9b\u7684C&#043;&#043;\u4ee3\u7801\u601d\u8def&#xff0c;\u5982\u4e0b\u5b9e\u73b0&#xff1a;<\/p>\n<h4>\u7b2c\u4e00\u6b65&#xff1a;\u6ce8\u518c\u81ea\u5b9a\u4e49\u534f\u8bae<\/h4>\n<p>\u4f7f\u7528\u7c7b\u4f3copenmstsc:\/\/\u534f\u8bae\u3002<\/p>\n<h5>\u6ce8\u518c\u793a\u4f8b (reg \u6587\u4ef6\u5f62\u5f0f)<\/h5>\n<p>Windows Registry Editor Version 5.00<\/p>\n<p>[HKEY_CLASSES_ROOT\\\\openmstsc]<br \/>\n&#064;&#061;&#034;URL:openmstsc Protocol&#034;<br \/>\n&#034;URL Protocol&#034;&#061;&#034;&#034;<\/p>\n<p>[HKEY_CLASSES_ROOT\\\\openmstsc\\\\shell\\\\open\\\\command]<br \/>\n&#064;&#061;&#034;\\\\&#034;C:\\\\\\\\your-path\\\\\\\\open_mstsc.exe\\\\&#034; \\\\&#034;%1\\\\&#034;&#034;<\/p>\n<p>\u6216\u901a\u8fc7\u4f60\u7684C&#043;&#043;\u4ee3\u7801\u81ea\u52a8\u5b8c\u6210\u6ce8\u518c&#xff08;\u4ee3\u7801\u91cc\u5df2\u7ecf\u5305\u542b\u8be5\u529f\u80fd&#xff09;\u3002<\/p>\n<hr \/>\n<h4>\u7b2c\u4e8c\u6b65&#xff1a;\u7f51\u9875\u4e2d\u8c03\u7528\u534f\u8baeURL<\/h4>\n<p>\u7f51\u9875\u7aef\u4ee3\u7801&#xff08;\u7b80\u5355HTML&#xff09;&#xff1a;<\/p>\n<p>&lt;!DOCTYPE html&gt;<br \/>\n&lt;html lang&#061;&#034;zh&#034;&gt;<br \/>\n&lt;head&gt;<br \/>\n    &lt;meta charset&#061;&#034;UTF-8&#034;&gt;<br \/>\n    &lt;title&gt;\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u793a\u4f8b&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n    &lt;a href&#061;&#034;openmstsc:\/\/192.168.1.100:3389&#034;&gt;\u8fde\u63a5\u8fdc\u7a0b\u684c\u9762 192.168.1.100&lt;\/a&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n<p>\u6ce8\u610f&#xff1a;<\/p>\n<ul>\n<li>\u70b9\u51fb\u6b64\u94fe\u63a5\u65f6&#xff0c;\u6d4f\u89c8\u5668\u4f1a\u63d0\u793a\u7528\u6237\u662f\u5426\u5141\u8bb8\u8c03\u7528\u8be5\u534f\u8bae&#xff08;\u9996\u6b21\u4f7f\u7528\u65f6\u4f1a\u8be2\u95ee&#xff09;&#xff0c;\u786e\u8ba4\u5373\u53ef\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4>\u7b2c\u4e09\u6b65&#xff1a;\u4f60\u7684C&#043;&#043;\u7a0b\u5e8f\u5b9e\u73b0\u8981\u70b9&#xff08;\u5df2\u63d0\u4f9b&#xff0c;\u4ee5\u4e0b\u5f3a\u8c03\u6ce8\u610f\u70b9&#xff09;<\/h4>\n<p>\u4f60\u7684C&#043;&#043;\u7a0b\u5e8f\u4e2d\u5173\u952e\u5b9e\u73b0\u70b9&#xff08;\u4f60\u4ee3\u7801\u4e2d\u5df2\u7ecf\u5305\u542b\u4e86&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u89e3\u6790\u4f20\u5165\u7684URL&#xff0c;\u63d0\u53d6IP:\u7aef\u53e3\u3002<\/li>\n<li>\u4f7f\u7528ShellExecuteExW\u8c03\u7528mstsc.exe\u5e76\u4f20\u5165\/v:IP:Port\u53c2\u6570\u3002<\/li>\n<\/ul>\n<p>\u793a\u4f8b&#xff08;\u6458\u5f55&#xff09;&#xff1a;<\/p>\n<p>void OpenWithMstsc(const std::wstring&amp; serverIP) {<br \/>\n    if (serverIP.empty()) return;<\/p>\n<p>    std::wstring mstscArgs &#061; L&#034;\/v:&#034; &#043; serverIP;<\/p>\n<p>    SHELLEXECUTEINFOW sei &#061; { sizeof(sei) };<br \/>\n    sei.lpFile &#061; L&#034;mstsc.exe&#034;;<br \/>\n    sei.lpParameters &#061; mstscArgs.c_str();<br \/>\n    sei.nShow &#061; SW_SHOWNORMAL;<br \/>\n    sei.fMask &#061; SEE_MASK_NOASYNC;<\/p>\n<p>    ShellExecuteExW(&amp;sei);<br \/>\n}<\/p>\n<hr \/>\n<h4>\u5b8c\u6574\u6d41\u7a0b\u8bf4\u660e<\/h4>\n<li>\u7f51\u9875\u94fe\u63a5\u70b9\u51fb \u2192 \u6d4f\u89c8\u5668\u89e6\u53d1openmstsc:\/\/IP:Port\u3002<\/li>\n<li>\u6d4f\u89c8\u5668\u8c03\u7528\u6ce8\u518c\u597d\u7684\u534f\u8bae\u2192 \u6267\u884copen_mstsc.exe&#xff0c;\u4f20\u5165\u53c2\u6570\u3002<\/li>\n<li>\u7a0b\u5e8f\u89e3\u6790URL \u2192 \u8c03\u7528mstsc.exe\u2192 \u8fdc\u7a0b\u684c\u9762\u5ba2\u6237\u7aef\u6253\u5f00\u3002<\/li>\n<p>\u8fd9\u6837\u5373\u53ef\u5b9e\u73b0\u70b9\u51fb\u7f51\u9875\u4e0a\u7684\u94fe\u63a5\u81ea\u52a8\u6253\u5f00\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u7684\u529f\u80fd\u3002<\/p>\n<p>\/\/ open_mstsc.cpp<br \/>\n\/\/ C&#043;&#043; \u91cd\u5199\u7248\u672c&#xff1a;\u5b9e\u73b0\u4e0e C# \u76f8\u540c\u529f\u80fd&#xff0c;\u5305\u62ec\u6ce8\u518c\u81ea\u5b9a\u4e49\u534f\u8bae\u3001\u89e3\u6790 URL&#xff0c;\u5e76\u901a\u8fc7 WPS \u6253\u5f00\u6587\u4ef6&#xff0c;\u4e14\u4e0d\u5f39\u51fa\u63a7\u5236\u53f0\u7a97\u53e3\u3002<br \/>\n\/\/\u8bed\u8a00\u529f\u80fd &#034;\u7ed3\u6784\u5316\u7ed1\u5b9a&#034; \u9700\u8981\u7f16\u8bd1\u5668\u6807\u5fd7 &#034;\/std:c&#043;&#043;17&#034;<br \/>\n\/\/\u94fe\u63a5\u5668-\u300b\u7cfb\u7edf-\u300b\u5b50\u7cfb\u7edf-\u300b\u7a97\u53e3\u6a21\u5f0f<br \/>\n#include &lt;windows.h&gt;<br \/>\n#include &lt;shlwapi.h&gt;<br \/>\n#include &lt;iostream&gt;<br \/>\n#include &lt;string&gt;<br \/>\n#include &lt;urlmon.h&gt;<br \/>\n#include &lt;shellapi.h&gt;<br \/>\n#include &lt;algorithm&gt; \/\/ for std::transform<br \/>\n#pragma comment(lib, &#034;Shlwapi.lib&#034;)<br \/>\n#pragma comment(lib, &#034;urlmon.lib&#034;)<br \/>\n#include &lt;cctype&gt;<br \/>\nconst std::wstring PROTOCOL_NAME &#061; L&#034;openMstsc&#034;;<br \/>\n#include &lt;windows.h&gt;<br \/>\n#include &lt;shellapi.h&gt;<\/p>\n<p>bool IsRunAsAdmin() {<br \/>\n    BOOL isAdmin &#061; FALSE;<br \/>\n    PSID adminGroup;<br \/>\n    SID_IDENTIFIER_AUTHORITY NtAuthority &#061; SECURITY_NT_AUTHORITY;<\/p>\n<p>    if (AllocateAndInitializeSid(&amp;NtAuthority, 2, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_ADMINS,<br \/>\n        0, 0, 0, 0, 0, 0, &amp;adminGroup)) {<br \/>\n        CheckTokenMembership(NULL, adminGroup, &amp;isAdmin);<br \/>\n        FreeSid(adminGroup);<br \/>\n    }<br \/>\n    return isAdmin;<br \/>\n}<\/p>\n<p>void RelaunchAsAdmin() {<br \/>\n    wchar_t exePath[MAX_PATH];<br \/>\n    GetModuleFileNameW(NULL, exePath, MAX_PATH);<\/p>\n<p>    SHELLEXECUTEINFOW sei &#061; { sizeof(sei) };<br \/>\n    sei.lpVerb &#061; L&#034;runas&#034;; \/\/ \u4ee5\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c<br \/>\n    sei.lpFile &#061; exePath;<br \/>\n    sei.nShow &#061; SW_SHOWNORMAL;<br \/>\n    sei.fMask &#061; SEE_MASK_NOASYNC;<\/p>\n<p>    if (ShellExecuteExW(&amp;sei)) {<br \/>\n        ExitProcess(0); \/\/ \u5173\u95ed\u5f53\u524d\u8fdb\u7a0b<br \/>\n    }<br \/>\n}<br \/>\n\/\/ \u66ff\u4ee3 HttpUtility.UrlDecode \u7684\u7b80\u5355\u5b9e\u73b0<br \/>\n\/\/ \u4f7f\u7528 UrlUnescapeW API \u8fdb\u884c\u89e3\u7801<br \/>\nstatic std::wstring UrlDecode(const std::wstring&amp; encoded) {<br \/>\n    if (encoded.empty()) return L&#034;&#034;;<\/p>\n<p>    \/\/ \u9884\u7559\u7f13\u51b2\u533a\u5b58\u653e\u89e3\u7801\u540e\u7684\u7ed3\u679c<br \/>\n    const size_t BUFFER_SIZE &#061; 4096;<br \/>\n    wchar_t buffer[BUFFER_SIZE];<br \/>\n    wcsncpy_s(buffer, encoded.c_str(), BUFFER_SIZE);<\/p>\n<p>    DWORD dwSize &#061; (DWORD)BUFFER_SIZE;<br \/>\n    HRESULT hr &#061; UrlUnescapeW(buffer, NULL, &amp;dwSize, URL_UNESCAPE_INPLACE);<br \/>\n    if (SUCCEEDED(hr)) {<br \/>\n        return std::wstring(buffer);<br \/>\n    }<br \/>\n    else {<br \/>\n        \/\/ \u5982\u679c\u89e3\u7801\u5931\u8d25&#xff0c;\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u8fd4\u56de\u7a7a\u5b57\u7b26\u4e32\u6216\u539f\u59cb\u503c<br \/>\n        return L&#034;&#034;;<br \/>\n    }<br \/>\n}<\/p>\n<p>static std::wstring ProcessServerIP(const std::wstring&amp; inputUrl, const std::wstring&amp; protocolName)<br \/>\n{<br \/>\n    \/\/ 1) \u6784\u9020 &#034;{protocol}:\/\/&#034; \u7684\u5c0f\u5199\u5f62\u5f0f<br \/>\n    std::wstring lowerProtocol &#061; protocolName;<br \/>\n    std::transform(lowerProtocol.begin(), lowerProtocol.end(), lowerProtocol.begin(), ::towlower);<br \/>\n    std::wstring protocolPrefix &#061; lowerProtocol &#043; L&#034;:\/\/&#034;;<\/p>\n<p>    \/\/ 2) \u8f6c\u6362 inputUrl \u4e3a\u5c0f\u5199\u8fdb\u884c\u67e5\u627e<br \/>\n    std::wstring lowerInput &#061; inputUrl;<br \/>\n    std::transform(lowerInput.begin(), lowerInput.end(), lowerInput.begin(), ::towlower);<\/p>\n<p>    \/\/ 3) \u79fb\u9664 &#034;protocol:\/\/&#034;<br \/>\n    std::wstring url;<br \/>\n    size_t pos &#061; lowerInput.find(protocolPrefix);<br \/>\n    if (pos !&#061; std::wstring::npos)<br \/>\n    {<br \/>\n        url &#061; inputUrl.substr(pos &#043; protocolPrefix.size());<br \/>\n    }<br \/>\n    else<br \/>\n    {<br \/>\n        url &#061; inputUrl;  \/\/ \u539f\u59cb URL<br \/>\n    }<\/p>\n<p>    \/\/ 4) URL \u89e3\u7801&#xff08;\u5047\u8bbe UrlDecode \u662f\u53ef\u7528\u51fd\u6570&#xff09;<br \/>\n    url &#061; UrlDecode(url);<\/p>\n<p>    \/\/ 5) \u53bb\u9664\u8def\u5f84\u90e8\u5206&#xff0c;\u4ec5\u4fdd\u7559 &#034;host:port&#034;<br \/>\n    size_t pathPos &#061; url.find(L&#039;\/&#039;);<br \/>\n    if (pathPos !&#061; std::wstring::npos)<br \/>\n    {<br \/>\n        url &#061; url.substr(0, pathPos);<br \/>\n    }<\/p>\n<p>    return url;<br \/>\n}<\/p>\n<p>\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n\/\/ \u4e0b\u9762\u662f\u539f\u6709\u7684\u51fd\u6570\u58f0\u660e\u4e0e\u5b9e\u73b0<br \/>\n\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>void RegisterUrlScheme(const std::wstring&amp; protocol, const std::wstring&amp; exePath);<br \/>\nstd::wstring GetRegisteredPath(const std::wstring&amp; protocol);<\/p>\n<p>void OpenWithMstsc(const std::wstring&amp; fileUrl);<br \/>\nstd::pair&lt;std::wstring, std::wstring&gt; GetWpsLauncherPath();<br \/>\nvoid EnsureUrlScheme(const std::wstring&amp; protocol);<\/p>\n<p>int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {<br \/>\n\/\/int main(){<\/p>\n<p>    if (!IsRunAsAdmin()) {<br \/>\n        RelaunchAsAdmin(); \/\/ \u5982\u679c\u4e0d\u662f\u7ba1\u7406\u5458\u6743\u9650&#xff0c;\u5219\u91cd\u65b0\u4ee5\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c<br \/>\n        return 0;<br \/>\n    }<br \/>\n    EnsureUrlScheme(PROTOCOL_NAME);<\/p>\n<p>    int argc;<br \/>\n    LPWSTR* argv &#061; CommandLineToArgvW(GetCommandLineW(), &amp;argc);<br \/>\n    if (argv &#061;&#061; NULL) return 0;<\/p>\n<p>    if (argc &lt; 2) {<br \/>\n        \/\/MessageBoxW(NULL, L&#034;\u26a0\ufe0f \u672a\u68c0\u6d4b\u5230 URL \u53c2\u6570\u3002&#034;, L&#034;\u63d0\u793a&#034;, MB_OK | MB_ICONWARNING);<br \/>\n        return 0;<br \/>\n    }<\/p>\n<p>    \/\/ \u8c03\u7528\u65b0\u7248 ProcessUrl<br \/>\n    std::wstring url &#061; ProcessServerIP(argv[1], PROTOCOL_NAME);<\/p>\n<p>    if (PathIsURLW(url.c_str())) {<br \/>\n        OpenWithMstsc(url);<br \/>\n    }<br \/>\n    else {<\/p>\n<p>    }<\/p>\n<p>    LocalFree(argv);<br \/>\n    return 0;<br \/>\n}<\/p>\n<p>void EnsureUrlScheme(const std::wstring&amp; protocol) {<br \/>\n    wchar_t exePath[MAX_PATH];<br \/>\n    GetModuleFileNameW(NULL, exePath, MAX_PATH);<br \/>\n    std::wstring registeredPath &#061; GetRegisteredPath(protocol);<\/p>\n<p>    if (registeredPath.empty() || !_wcsicmp(registeredPath.c_str(), exePath) &#061;&#061; 0) {<br \/>\n        RegisterUrlScheme(protocol, exePath);<br \/>\n    }<br \/>\n}<\/p>\n<p>std::wstring GetRegisteredPath(const std::wstring&amp; protocol) {<br \/>\n    HKEY hKey;<br \/>\n    std::wstring regPath &#061; L&#034;&#034;;<br \/>\n    std::wstring keyPath &#061; protocol &#043; L&#034;\\\\\\\\shell\\\\\\\\open\\\\\\\\command&#034;;<br \/>\n    if (RegOpenKeyExW(HKEY_CLASSES_ROOT, keyPath.c_str(), 0, KEY_READ, &amp;hKey) &#061;&#061; ERROR_SUCCESS) {<br \/>\n        wchar_t value[MAX_PATH];<br \/>\n        DWORD value_length &#061; sizeof(value);<br \/>\n        if (RegQueryValueExW(hKey, NULL, NULL, NULL, (LPBYTE)value, &amp;value_length) &#061;&#061; ERROR_SUCCESS) {<br \/>\n            std::wstring commandLine(value);<br \/>\n            size_t firstQuoteEnd &#061; commandLine.find(L&#039;&#034;&#039;, 1);<br \/>\n            if (firstQuoteEnd !&#061; std::wstring::npos) {<br \/>\n                regPath &#061; commandLine.substr(1, firstQuoteEnd &#8211; 1);<br \/>\n            }<br \/>\n        }<br \/>\n        RegCloseKey(hKey);<br \/>\n    }<br \/>\n    return regPath;<br \/>\n}<\/p>\n<p>void RegisterUrlScheme(const std::wstring&amp; protocol, const std::wstring&amp; exePath) {<br \/>\n    HKEY hKey;<br \/>\n    std::wstring keyPath &#061; protocol;<br \/>\n    if (RegCreateKeyExW(HKEY_CLASSES_ROOT, keyPath.c_str(), 0, NULL, 0, KEY_WRITE, NULL, &amp;hKey, NULL) &#061;&#061; ERROR_SUCCESS) {<br \/>\n        RegSetValueExW(hKey, NULL, 0, REG_SZ, (const BYTE*)(L&#034;URL:&#034; &#043; protocol &#043; L&#034; Protocol&#034;).c_str(),<br \/>\n            (DWORD)((protocol.size() &#043; 10) * sizeof(wchar_t)));<br \/>\n        RegSetValueExW(hKey, L&#034;URL Protocol&#034;, 0, REG_SZ, (const BYTE*)L&#034;&#034;, sizeof(wchar_t));<br \/>\n        HKEY hCommandKey;<br \/>\n        if (RegCreateKeyExW(hKey, L&#034;shell\\\\\\\\open\\\\\\\\command&#034;, 0, NULL, 0, KEY_WRITE, NULL, &amp;hCommandKey, NULL) &#061;&#061; ERROR_SUCCESS) {<br \/>\n            std::wstring command &#061; L&#034;\\\\&#034;&#034; &#043; exePath &#043; L&#034;\\\\&#034; \\\\&#034;%1\\\\&#034;&#034;;<br \/>\n            RegSetValueExW(hCommandKey, NULL, 0, REG_SZ, (const BYTE*)command.c_str(), (DWORD)(command.size() * sizeof(wchar_t)));<br \/>\n            RegCloseKey(hCommandKey);<br \/>\n        }<br \/>\n        RegCloseKey(hKey);<br \/>\n        MessageBoxW(NULL, L&#034;\u8fdc\u7a0b\u7ec4\u4ef6\u6ce8\u518c\u6210\u529f\u3002&#034;, L&#034;\u6210\u529f&#034;, MB_OK | MB_ICONINFORMATION);<br \/>\n    }<br \/>\n}<\/p>\n<p>void OpenWithMstsc(const std::wstring&amp; serverIP) {<br \/>\n    if (serverIP.empty()) {<br \/>\n        \/\/ MessageBoxW(NULL, L&#034;\u274c \u670d\u52a1\u5668 IP \u4e0d\u80fd\u4e3a\u7a7a\u3002&#034;, L&#034;\u9519\u8bef&#034;, MB_OK | MB_ICONERROR);<br \/>\n        return;<br \/>\n    }<\/p>\n<p>    \/\/ \u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u7684\u5b8c\u6574\u547d\u4ee4\u884c\u53c2\u6570<br \/>\n    std::wstring mstscArgs &#061; L&#034;\/v:&#034; &#043; serverIP;<\/p>\n<p>    SHELLEXECUTEINFOW sei &#061; { sizeof(sei) };<br \/>\n    sei.lpFile &#061; L&#034;mstsc.exe&#034;;  \/\/ \u8fdc\u7a0b\u684c\u9762\u5ba2\u6237\u7aef<br \/>\n    sei.lpParameters &#061; mstscArgs.c_str();<br \/>\n    sei.nShow &#061; SW_SHOWNORMAL;<br \/>\n    sei.fMask &#061; SEE_MASK_NOASYNC;<\/p>\n<p>    if (!ShellExecuteExW(&amp;sei)) {<br \/>\n        \/\/ MessageBoxW(NULL, L&#034;\u274c \u65e0\u6cd5\u542f\u52a8\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u3002&#034;, L&#034;\u9519\u8bef&#034;, MB_OK | MB_ICONERROR);<br \/>\n    }<br \/>\n}<\/p>\n<p>\u6ce8\u610f\u4e0a\u9762\u4ee3\u7801\u8981\u4ee5\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c\u624d\u80fd\u6b63\u786e\u5199\u5165\u6ce8\u518c\u8868&#xff0c;\u5426\u5219\u5931\u8d25<\/p>\n<p>\u4e0b\u9762\u5c06\u7ee7\u7eed\u5b9e\u73b0\u4e00\u4e0bunbuntu\u4e0a\u5982\u4f55\u5b9e\u73b0\u7c7b\u4f3c\u65b9\u6cd5<\/p>\n<p>sudo apt install freerdp2-x11 \u00a0<br \/>\nxfreerdp \/v:10.10.10.11:33389 \/u:username \/p:passwrod \/cert-ignore \/dynamic-resolution or( \/w:1440 \/h:900) <\/p>\n<p> \u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb690\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u7f51\u9875\u4e0a\u6253\u5f00\u8fdc\u7a0b\u684c\u9762\u7684\u65b9\u6cd5_\u5982\u4f55\u7f51\u9875\u6253\u5f00mstsc<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,149,43,44],"topic":[],"class_list":["post-41786","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-windows","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>windows \u5e73\u53f0\u5982\u4f55\u70b9\u51fb\u7f51\u9875\u4e0a\u7684url ,\u4f1a\u6253\u5f00\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/41786.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"windows \u5e73\u53f0\u5982\u4f55\u70b9\u51fb\u7f51\u9875\u4e0a\u7684url ,\u4f1a\u6253\u5f00\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb690\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u7f51\u9875\u4e0a\u6253\u5f00\u8fdc\u7a0b\u684c\u9762\u7684\u65b9\u6cd5_\u5982\u4f55\u7f51\u9875\u6253\u5f00mstsc\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/41786.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-04T08:35:46+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/41786.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/41786.html\",\"name\":\"windows \u5e73\u53f0\u5982\u4f55\u70b9\u51fb\u7f51\u9875\u4e0a\u7684url ,\u4f1a\u6253\u5f00\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-04T08:35:46+00:00\",\"dateModified\":\"2025-06-04T08:35:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/41786.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/41786.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/41786.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"windows \u5e73\u53f0\u5982\u4f55\u70b9\u51fb\u7f51\u9875\u4e0a\u7684url ,\u4f1a\u6253\u5f00\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u670d\u52a1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"windows \u5e73\u53f0\u5982\u4f55\u70b9\u51fb\u7f51\u9875\u4e0a\u7684url ,\u4f1a\u6253\u5f00\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/41786.html","og_locale":"zh_CN","og_type":"article","og_title":"windows \u5e73\u53f0\u5982\u4f55\u70b9\u51fb\u7f51\u9875\u4e0a\u7684url ,\u4f1a\u6253\u5f00\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb690\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u7f51\u9875\u4e0a\u6253\u5f00\u8fdc\u7a0b\u684c\u9762\u7684\u65b9\u6cd5_\u5982\u4f55\u7f51\u9875\u6253\u5f00mstsc","og_url":"https:\/\/www.wsisp.com\/helps\/41786.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-04T08:35:46+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/41786.html","url":"https:\/\/www.wsisp.com\/helps\/41786.html","name":"windows \u5e73\u53f0\u5982\u4f55\u70b9\u51fb\u7f51\u9875\u4e0a\u7684url ,\u4f1a\u6253\u5f00\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-04T08:35:46+00:00","dateModified":"2025-06-04T08:35:46+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/41786.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/41786.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/41786.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"windows \u5e73\u53f0\u5982\u4f55\u70b9\u51fb\u7f51\u9875\u4e0a\u7684url ,\u4f1a\u6253\u5f00\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/41786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=41786"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/41786\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=41786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=41786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=41786"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=41786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}