In this azure tutorial, we will discuss Troubleshooting specific RDP error messages to a Windows VM in Azure. Apart from this, we will also discuss on the below topics:
- Remote desktop cannot connect to the remote computer for one of these reasons.
- RDP this computer can’t connect to the remote computer
- Remote Desktop can’t find the computer “name”.
- Windows Security error: Your credentials did not work.
- This computer can’t connect to the remote computer.
- The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.
- Remote Desktop can’t connect to the remote computer – What is the Reason and solutions
- What are the reasons Remote Desktop connections to fail in Windows?
- Fix: Remote Desktop can’t connect to the Remote Computer
- Remote desktop can’t connect to the remote computer server 2012
- Remote desktop can’t connect to the remote computer windows 7
- Remote desktop can’t connect to the remote computer for one of these reasons windows 10
- Remote desktop can’t connect to the remote computer server 2016
Table of Contents
- Troubleshooting specific RDP error messages to a Windows VM in Azure.
- Remote desktop cannot connect to the remote computer for one of these reasons:
- RDP this computer can’t connect to the remote computer
- Remote Desktop can’t find the computer “name”
- Windows Security error: Your credentials did not work.
- This computer can’t connect to the remote computer
- The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.
- Remote Desktop can’t connect to the remote computer – What is the Reason and solutions
- [Solved] Remote Desktop can’t Connect to the Remote Computer for one of these Reasons
- What are the reasons Remote Desktop connections to fail in Windows?
- Fix: Remote Desktop can’t Connect to the Remote Computer
- Remote desktop can’t connect to the remote computer server 2012 [Solved]
- Remote desktop can’t connect to the remote computer windows 7 [Solved]
- Remote desktop can’t connect to the remote computer for one of these reasons windows 10 [Solved]
- Remote desktop can’t connect to the remote computer server 2016 [Solved]
Troubleshooting specific RDP error messages to a Windows VM in Azure.
Let’s try Troubleshooting specific RDP error messages in Azure.
Below are a few specific RDP error messages which you might get while trying to connect to your Azure virtual machine(VM). Below are few errors. We will discuss one by one how can we fix those.
- Remote desktop cannot connect to the remote computer for one of these reasons.
- Remote Desktop can’t find the computer “name”.
- Windows Security error: Your credentials did not work.
- This computer can’t connect to the remote computer.
- The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.
Remote desktop cannot connect to the remote computer for one of these reasons:
While connecting to the Azure virtual machine, I got the below error message
Remote desktop cannot 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.
RDP this computer can’t connect to the remote computer

To fix the issue you need to follow the below steps
Step- 1:
Login to https://portal.azure.com/
Step- 2:
Search for Virtual machines there.

Step- 3:
You will see the list of VM created in your Azure subscription. It will show the VM name, Type, Status, ResourceGroup, Location, etc.

Step- 4:
Now click on the VM name. “MyNewVM” in my case. You can able to see the details of your virtual machine like Public IP address, status, Computer name, Operating system, Size etc.
If you can see the Status of the VM is Stopped(deallocated). The status should be running.

Step- 5:
Now click on the Start button.

Step- 6:
Now if you can see the VM Status is changed to “Running”.

Step- 7:
Now you should able to connect to the virtual machine without any issues.Click on the Connect button.

Remote Desktop can’t find the computer “name”
You might get the below error while trying to connect the virtual machine in Azure.
The error is “Remote Desktop can’t find the computer “name”“.

To fix this, instead of this name you can use the DNS name configured for your virtual machine.
It’s always better to configure the DNS name for your virtual machine(VM). You can use the same DNS name to connect to the virtual machine using the RDP.
For Example:
The DNS name configured for my virtual machine(VM) is “mynewvm.westus.cloudapp.azure.com”. This is also known as the Fully Qualified Domain Name(FQDN).
Windows Security error: Your credentials did not work.
You might get the error like Windows Security error: Your credentials did not work.
This error is because the Remote desktop is not able to validate the entered username and password.
1- For local accounts, you can use the ComputerName\UserName syntax as the username.
2- For domain accounts, you can use the DomainName\UserName syntax as the username.
3- If you have already configured the DNS name, you can use the Fully Qualified Domain Name(FQDN) as the username.
Verify the Username and Password enter is correct. You can reset the username and password from the Azure portal. To reset the username and password, You can refer to How to access Azure VM (Virtual Machine).
This computer can’t connect to the remote computer
We might get the error This computer can’t connect to the remote computer while connecting the virtual machine(VM).
This error you will get because the account is using to connect may not have the Remote Desktop sign-in rights.
So always be sure that the account you are using has the Remote Desktop sign-in rights.
To fix this issue what you need to do is you need to give Remote Desktop sign-in rights to that particular account.
To give these rights you need to go to System Tools -> Local Users and Groups -> Groups > Remote Desktop Users and add the account to this group.
The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.
You might get the error The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license while working with a virtual machine(VM).
Normally, the grace licensing period for a Remote Desktop Server role is 120 days. Once it expires you need to install the license.
But you can disable this by running the below command with PowerShell But before that you can keep local copy of the RDP file
mstsc <Your local RDP File name>.RDP /admin
mstsc MyNewVM.RDP /admin
MyNewVM.RDP is my Remote Desktop File(RDP) file which i have downloaded.
All the above errors are the part of Troubleshooting specific RDP error messages in Azure.
Remote Desktop can’t connect to the remote computer – What is the Reason and solutions
This is a common issue that you might get while connecting your Azure Virtual Machine. Many people used to get this issue while trying to connect to their virtual machines. Here, we will discuss what might be the reason to get the error “Remote Desktop can’t connect to the remote computer” and How to Fix the Remote Desktop can’t connect to the remote computer error.
Error

“Remote Desktop can’t connect to the remote computer for one of these reasons:”
Problem Cause
There could be multiple reasons for this issue. Let’s discuss one by one
[Solved] Remote Desktop can’t Connect to the Remote Computer for one of these Reasons
Solution
You should Check the network connectivity
One of the most common reasons for the error Remote Desktop can’t connect to the remote computer is the issue with the connectivity of the network. For example, there might be a chance that the firewall is blocking access to the Azure Virtual machine.
You can use the Telnet client to check the connectivity to the Azure Virtual machine. One key advantage of using the Telnet client is, you can easily check the RDP port 3389 is open or not.
You can use the below command from the command prompt to enable the Telnet from the command prompt
dism /online /Enable-Feature /FeatureName:TelnetClient
If are using PowerShell, then you can use the below PowerShell cmdlet to enable the Telnet
Install-WindowsFeature -name Telnet-Client
Check the User Permissions
Cross-check the user permissions that might be the reason for the error Remote Desktop can’t connect to the remote computer. Note that if the user is not having administrator privileges. There is a group called as local Remote Desktop Users group, either the user should belong to that group to access the Remote machine via RDP. Normally, there won’t be any member who belongs to the local Remote Desktop Users group by default unless and until any of the users is getting added manually. So only Administrator’s group members can access the remote machine via RDP.
Enable Remote Desktop Connection
This is one of the common causes that result in you the error Remote Desktop can’t connect to the remote computer. People normally missed enabling the Remote Desktop Connection option. There are multiple ways to enable the Remote Desktop Connection option and those are like using the System Properties, using PowerShell cmdlet, Using Command Prompt, etc
Using System Properties
You can follow the below steps to enable the Remote Desktop Connection option.
- On your machine, Select start –> Run –> type sysdm.cpl.
- Navigate to the Remote tab.
- Select the Allow remote connections to this computer and then click on the OK button to save the changes.

Using PowerShell cmdlet
To enable Remote Desktop Connection, you can also use the PowerShell cmdlet as below
(Get-WmiObject Win32_TerminalServiceSetting -Computername [ComputerName] ‑Namespace root\cimv2\TerminalServices).SetAllowTsConnections(1,1)
This is how you can use the PowerShell cmdlet to enable the Remote Desktop Connection.
Using the command prompt
If you don’t have PowerShell installed on your machine, you can use the below command on your command prompt to enable the Remote Desktop Connection option.
REG ADD "\\[RemoteComputer] \HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /d 0 /f /t REG_DWORD
Verify If Group Policy is blocking RDP
Another reason could be there is a chance that Group Policy is blocking the the RDP. You need to follow the below steps to verify that
- Select-> Run and then type gpedit.msc
- Click on the Computer Configuration –> Administrative Templates –> Windows Components –> Then select the Remote Desktop Services –> Now select Remote Desktop Session Host and then Connections.
- The next step is to find the Allow users to connect remotely by using Remote Desktop Services setting.
- Make sure to change the settings to Enabled or Not Configured.
Cross check the RDP listener port status
You can always cross-check the RDP listener port status on your remote computer. By default, it should listen to port 3389. At the same time make sure that the same port 3389 is not occupied by another application. You can verify that using the below steps
- Navigate to Start –> Run and then type regedit
- Go to HKEY_LOCAL_MACHINE > SYSTEM –> then select CurrentControlSet –> Control –> Terminal Server –> WinStations –> RDP-Tcp
- Review the PortNumber setting
Verify the RDP connection using PowerShell
You can run the Get-RDPStatus.Ps1 script which is available here to verify the RDP connectivity status. You can quickly get the status of ping, FQDN, RDP ports, and RDP services, RDP status, RDP Settings, RDPwithNLA, etc.
What are the reasons Remote Desktop connections to fail in Windows?
Below are few key reasons that might be responsible for the Remote Desktop connections to fail in Windows.
Antivirus / Firewall Might Blocking
There is also a possibility after you installed the Antivirus or configured the firewall, They might block few features of the Remote Desktop Connection. That’s the reason you might not able to connect to the Remote Desktop.
RDP not working post Windows Update
There is another chance that you might get the issue with your Remote Desktop Connection post your windows update. There is a chance that a few of the RDP features might get corrupted after your windows update. You will have to fix those issues manually in order to make the Remote Desktop Connection work properly.
Issue Due to public network profile
There is also one more reason, you might get some issue connecting the Remote Desktop when you have a public network profile in windows.
Fix: Remote Desktop can’t Connect to the Remote Computer
You can try out the below solutions to fix the Error: “Remote Desktop can’t connect to the remote computer for one of these reasons”.
Allow the Remote Desktop Connection
Follow the below steps to allow the Remote Desktop Connection
- Click on the Start –> click on the Settings –> click on System
- Click on the Remote Desktop option from the left navigation.
- “On” the Enable Remote Desktop option.

Update Your Firewall Settings
You need to update your firewall setting that might blocking the Remote Desktop Connection using the below steps
- Navigate to your Start menu and search for Allow an app through Windows Firewall.
- Click on the Open option.
- The next step is to click on the Change Settings button that is present at the top right corner as shown below.

4. Scroll down till you can see Remote Desktop and select the checkbox for private one.
5. Finally, close the window to save the changes.
Add the IP Address of your Remote Computer to your Host file
You can also try adding the IP Address of your Remote Computer to your host file. Follow the below steps to add the IP address of your remote computer to your host file.
- Open the command prompt with run as administrator.
- Run the below command.
cd C:/Windows/System32/Drivers/etc
3. The next step is, run the below command
notepad hosts

4. Add the IP address of your Remote computer at end of this hosts notepad file and then close it and click on the Save button.
Verify Your Remote Desktop Credential
Most of the times, for our easy access, we use to save the Remote Desktop credentials for one particular Remote machine and when we are trying to access a different Remote computer that time we might forget to access the VM with a different credential and when we will try to access the remote machine with the other credential, you will get the error. So, you need to reset the credentials.
You need to follow the below steps to reset your credentials
- Type mstsc on your start menu and then click on the Remote Desktop Connection option.
- Once, you will type in the computer IP address or the name. If there are any credentials saved for that particular computer, you can able to see the edit or delete option.
- Click on the delete option and then it will show you Are you sure want to delete the saved credentials, click on the Yes button to confirm the changes.
Check your Network/Internet connection
You need to make sure your Network or Interconnection is working properly. If there will be an issue with your Network or Internet connection, you might get any issue while accessing your Remote Desktop Connection.
You can use the below command in your command prompt to check if all the network resources are working fine as expected
ping 8.8.8.8
Slow connection
Sometimes, if your network connection is very slow, you can able to connect your remote machine but it will disconnect so many times and also you might get some connection errors while trying to connect to your remote computer. In that case, you might have to update the driver software related to your Network Adopters.
RDP Port conflict?, Change RDP port number
In case, another application is trying to use the same port number that your RDP is supposed to use (By default 3389), then, in that case, you will end up with an RDP Port conflict, and then it will not allow you to use the RDP. You can change the port number for your RDP from 3389 to a different one.
The first thing is, you need to find out a free port and you can able to see the list of ports assigned to the different resources using the below command in your command prompt. You can select any free port between 1024 through 49151.
netstat -a -o
You can able to see the list of port and usage like below

You need to add a new Windows Firewall Inbound rule using the below information
- Rule Type: select Port
- Protocol and Ports: TCP, Specific local ports, <port number>
- Action: select Allow the connection
- Profile: Tick all options
- Name: Remote Desktop – TCP <Your New port number>
Note: Always take a backup of your server before making any changes.
The next step is to make the below changes
- Navigate to the Start menu and search for regedit.
- Now, you will see the registry file, locate the below key in the file
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal SErver\WinStations\RDP-Tcp\PortNumber
- As a next step, Open the PortNumber registry key for edit, change the display to option as Decimal, enter your new port number and click OK to save the changes.
- Now, you need to restart the Remote Desktop Service, so that the changes will get reflected. Navigate to the start button and then search for services, find out the Remote Desktop Service and restart it.
- Click on the Yes button on the confirmation Pop up to confirm the restart.
Remote desktop can’t connect to the remote computer server 2012 [Solved]
In case, you are using the Windows server 2012, you got the error Remote desktop can’t connect to the remote computer error, then you can follow the below steps to fix the issue
- Right click on the “My Computer” –> Select the “Properties” –> Then select the “Remote Settings” option.
- On the same screen, You need to uncheck the “Allow connections only for computers running Remote Desktop with Network Level Authentication (recomended)” check box.
Remote desktop can’t connect to the remote computer windows 7 [Solved]
If the machine is running windows 7 and you got the error Remote desktop can’t connect to the remote computer while using RDP, you can try out the below steps which will fix the issue.
- Click on the Start button –> Right-click on the Computer –> Select the Properties option.
- From the Left, Select the Remote Settings or select the Remote Tab.
- Now you need to select the option “Allow connections from computers running any version of Remote Desktop”
- Finally, select the Ok button.
or for the same option, you can try out the below steps
- Click on the Start button –> Control Panel –> Select System.
- Click on the Advanced System Settings link.
- Now, click on the Remote tab.
- select the “Allow connections from computers running any version of Remote Desktop” option and click on the Ok button.
Remote desktop can’t connect to the remote computer for one of these reasons windows 10 [Solved]
If the machine is running windows 10 and you got the error Remote desktop can’t connect to the remote computer while using RDP, you can try out the below steps which will fix the issue.
- Click on the Start –> click on the Settings –> click on System
- Click on the Remote Desktop option from the left navigation.
- “On” the Enable Remote Desktop option.
Remote desktop can’t connect to the remote computer server 2016 [Solved]
If the machine is running Windows server 2016, and you got the error Remote desktop can’t connect to the remote computer while using RDP, you can try out the below steps which will fix the issue.
- Open the Server Manager, you can select it from the taskbar to open it.
- Click on the local server from the left side. You can able to see the Remote Desktop is listed as Disabled.
- As the next step, Click on the Disabled option which will open the System Properties window on the Remote tab.
- Select the “Allow remote connections to this Computer” option on the System Properties window.
- Now one warning pop-up will appear which will say this will create the required firewall rules in Windows firewall to allow remote desktop traffic, Click on the Ok button.
- On the System Properties window, click on the Ok button.
- Restart your machine which will apply the changes will enable the Remote Desktop option.
You may like following Azure tutorials:
- Connect to Azure in PowerShell (And Azure AD)
- How to create a user in Azure active directory
- How to add bulk guest users in Azure AD B2B from Azure Portal and PowerShell
- What is Azure Active Directory B2B collaboration (Azure AD B2B)
- The term ‘get-aduser’ is not recognized as the name of a cmdlet in Windows 10 PowerShell
- The term ‘connect-azuread’ is not recognized as the name of a cmdlet function Azure
Conclusion
In this Azure tutorial, We discussed
- Troubleshooting specific RDP error messages in Azure
- Remote desktop cannot connect to the remote computer for one of these reasons.
- RDP this computer can’t connect to the remote computer
- Remote Desktop can’t find the computer “name”.
- Windows Security error: Your credentials did not work.
- This computer can’t connect to the remote computer.
- The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license.
- Remote Desktop can’t connect to the remote computer – What is the Reason and solutions
- What are the reasons Remote Desktop connections to fail in Windows?
- Fix: Remote Desktop can’t connect to the Remote Computer
- Remote desktop can’t connect to the remote computer server 2012
- Remote desktop can’t connect to the remote computer windows 7
- Remote desktop can’t connect to the remote computer for one of these reasons windows 10
- Remote desktop can’t connect to the remote computer server 2016