0

I have a file on my Desktop named 3390.rdp, complete with all login credentials. I'm trying to use it to connect to a Ubuntu installation on WSL2. When I open the Ubuntu "app" manually, and click the rdp, it connects just fine. However, when I try to run the following batch script:

start /wait "" "C:\Users\ingen\OneDrive\Desktop\Ubuntu_24.04.1_LTS.lnk"
mstsc "C:\Users\ingen\OneDrive\Desktop\3390.rdp"

it gives the following error:

Remote Desktop can't connect to the remote computer for one of these reasons:

1) Remote access to the server is not enabled
2) The remote computer is turned off
3) The remote computer is not available on the network

Make sure the remote computer is turned on and connected to the network, and that remote access is enabled.

My best guess is that this is a problem with the rdp somehow not launching correctly. Can anyone shed any light on this?

3
  • You sure the Ubuntu instance it fully loaded and running before you try to execute the rdp connection? Commented May 21 at 14:21
  • Not at all. I tried adding the /wait tag to ensure this, but I'm pretty new to batch and not sure if that was the right way to go. Commented May 21 at 18:16
  • What exactly is the .lnk pointing to here? Commented Jun 11 at 11:25

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.