修复远程桌面
复制 $ws = 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations' $current = ( Get-ItemProperty ` -Path $ws ` -Name 'SelfSignedCertStore' ` -ErrorAction SilentlyContinue ).SelfSignedCertStore if ($current -ne 'Remote Desktop') { New-ItemProperty ` -Path $ws ` -Name 'SelfSignedCertStore' ` -PropertyType String ` -Value 'Remote Desktop' ` -Force | Out-Null Write-Host "已修复:SelfSignedCertStore = Remote Desktop" -ForegroundColor Green } Write-Host "当前值:" -ForegroundColor Cyan (Get-ItemProperty $ws).SelfSignedCertStore Write-Host "请重启 Windows。" -ForegroundColor Yellow 使用方法: 先在 Windows 设置中正常开启“远程桌面”,然后以 管理员身份打开 PowerShell ,复制上面的代码执行。执行完成后 重启 Windows ,再尝试远程桌面连接。 一、问题现象 我在 VMware 中全新安装 Windows 10 Enterprise LTSC 2021 后,多次遇到一个比较奇怪的问题: Windows 设置中已经开启“远程桌面”,但是其他电脑仍然无法通过 RDP 连接。 而且这个问题并不是偶发的。在相同安装环境中...