If you have WSL installed, then it could also be caused by WSL, which may automatically open the Remote Desktop Connection process (mstsc.exe). You can try the following steps to disable the gui feature of WSL: To disable the gui feature of wsl 1. Shut down wsl (CMD) wsl âshutdown 2. Go to the user directory: C:\Users\your username Create a .wslconfig file Edit the following: [wsl2] guiapplications=false 3. Restart wsl