侧边栏壁纸
  • 累计撰写 98 篇文章
  • 累计创建 45 个标签
  • 累计收到 5 条评论

目 录CONTENT

文章目录

WSL msrdc.exe 一直弹窗 Remote Desktop Your computer was unable to connect to the remote computer

勤为径苦作舟
2025-02-09 / 0 评论 / 1 点赞 / 4 阅读 / 0 字

简介

某次开机后C:\Program Files\WSL\msrdc.exe频繁弹窗“Remote Desktop Your computer was unable to connect to the remote computer”。

暂时找不到原因,先解决。

WSL 会自动打开远程桌面连接进程(mstsc.exe)导致,禁用 WSL 的 GUI 功能就好了。

步骤

  1. cmd 关闭 WSL
    wsl --shutdown
    
  2. C:\Users\用户名下新建文件.wslconfig,内容为:
    [wsl2]
    guiapplications=false
    
  3. cmd 启用 WSL
    wsl
    

参考

1

评论区