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

暂时找不到原因,先解决。
WSL 会自动打开远程桌面连接进程(mstsc.exe)导致,禁用 WSL 的 GUI 功能就好了。
步骤
- cmd 关闭 WSL
wsl --shutdown - 在
C:\Users\用户名下新建文件.wslconfig,内容为:[wsl2] guiapplications=false - cmd 启用 WSL
wsl
评论区