{"slug":"fuck-mswin11-rdp","title":"新版Win11远程桌面/RDP突然连不上？！百分百教你解决！","description":"今天手头突然要用一个老的Win7 32位系统来远程开发，自然是无法用UU远程了，然后RDP又给我整这出...","coverImage":"https://b.acofork.com/img/fuck-mswin11-rdp-fkms.webp","coverWidth":800,"coverHeight":600,"date":"2026-05-22","tags":["杂谈"],"pinned":false,"wordCount":309,"html":"<h2 id=\"症状\">症状</h2><p>一个带有远程桌面的版本（非家庭版），最新版Win11（25h2），启用了远程桌面服务</p>\n<p><img src=\"https://b.acofork.com/img/fuck-mswin11-rdp-index.webp\" alt=\"\" width=\"1328\" height=\"699\" loading=\"eager\" decoding=\"async\" /></p>\n<p><img src=\"https://b.acofork.com/img/fuck-mswin11-rdp-index-1.webp\" alt=\"\" width=\"1354\" height=\"685\" loading=\"lazy\" decoding=\"async\" /></p>\n<p>表现为：<strong>RDP服务正常</strong>，<strong>本地连接正常</strong></p>\n<p>但是系统 <strong>不监听3389端口</strong>，<strong>外部无法连接</strong> （我还排查了好久是不是我STUN的问题😅）</p>\n<h2 id=\"解决方案\">解决方案</h2><blockquote>\n<p>由于新版Win11更”安全“了。微软默认将RDP隔离出去了，我们需要做以下几件事让RDP恢复外部监听😅</p>\n</blockquote>\n<p><strong>使用管理员权限打开Powershell并执行</strong> </p>\n<p>关闭Hypervisor</p>\n<div class=\"markdown-code\" data-language=\"powershell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>powershell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-powershell\">bcdedit /<span class=\"hljs-built_in\">set</span> hypervisorlaunchtype off</code></pre></div><p>关闭 Credential Guard</p>\n<div class=\"markdown-code\" data-language=\"powershell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>powershell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-powershell\">reg add <span class=\"hljs-string\">\"HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\"</span> /v LsaCfgFlags /t REG_DWORD /d <span class=\"hljs-number\">0</span> /f</code></pre></div><p>同步微软账户密码至本地账户（如果需要）</p>\n<div class=\"markdown-code\" data-language=\"powershell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>powershell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-powershell\">runas /u:MicrosoftAccount\\&lt;你的微软账户邮箱 &gt; winver</code></pre></div><p>重启系统即可</p>\n<p>另外记得<strong>不要打开</strong> <code>要求设备使用网络级别身份验证连接(推荐)</code></p>\n<p><img src=\"https://b.acofork.com/img/fuck-mswin11-rdp-index-2.webp\" alt=\"\" width=\"398\" height=\"231\" loading=\"lazy\" decoding=\"async\" /></p>\n<h2 id=\"鸣谢\">鸣谢</h2><p><a href=\"https://jishuzhan.net/article/2054187012247785474\" target=\"_blank\" rel=\"noopener noreferrer\">[实战记录] Windows 11 远程桌面已开启，但 3389 端口无监听？终极排查与修复 - 技术栈</a></p>\n<p><a href=\"https://zhuanlan.zhihu.com/p/561164150\" target=\"_blank\" rel=\"noopener noreferrer\">使用微软账号的Windows如何用远程桌面连接 - 知乎</a></p>\n","toc":[{"id":"症状","text":"症状","depth":2},{"id":"解决方案","text":"解决方案","depth":2},{"id":"鸣谢","text":"鸣谢","depth":2}]}