Remote Desktop cannot connect to the VDI-based remote computer after enabling Microsoft RemoteFX 3D Video Adapter
This article provides a solution to an issue where Remote Desktop can't connect to a Virtual Desktop Infrastructure (VDI)-based remote computer.
Applies to: Windows 7 Service Pack 1, Windows Server 2008 R2 Service Pack 1
Original KB number: 2820155
After installing the RemoteFX 3D Video Adapter on a VDI-based physical machine or a virtual machine that is hosted on a Hyper-V server, when you try to connect to the machine using Remote Desktop connection, it may fail. Additionally, you may receive the error message that is similar to the following:
Remote Desktop can't connect to the remote computer for one of these reasons:
- Remote access to the server is not enabled
- The remote computer is turned off
- 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.
You may also receive the following error in the Windows Event Log:
Log Name: Microsoft-Windows-TerminalServices-LocalSessionManager/Operational
Event ID: 17
Remote Desktop Service start failed. The relevant status code was 0x800706b5.
You can connect to the computer using RDP if you remove the RemoteFX 3D Video Adapter from the VM.
With the release of Service Pack 1 for Windows 7 and Windows Server 2008 R2, a new Windows Firewall rule is added for RemoteFX. This problem occurs if RemoteFX Windows Firewall rule is not enabled.
For more information on Microsoft RemoteFX, visit the following Microsoft Web site:
To resolve the problem, you must enable the RemoteFX Windows Firewall rule manually.
To enable the RemoteFX rule by using Windows Firewall with Advanced Security
- Click the Start button, and then click Control Panel.
- In the Control Panel windows click Windows Firewall.
- In the left pane, click Allow a program or feature through Windows Firewall.
- Click Change settings. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
- Under Allowed programs and features, select the check box next to Remote Desktop - RemoteFX, and then use the check boxes in the columns to select the network location types you want to allow communication on.
- Click OK.
Alternatively, if you enable Remote Desktop by using the System properties window, the rule is enabled automatically.
Click the Start button, and then click Control Panel.
Click on System icon.
Under Control Panel Home, click Remote settings.
Click the Remote tab. Under Remote Desktop, Select Don't allow connections to this computer and the click Apply.
Now select either option depending on your security requirements:
- Allow connections from computers running any version of Remote Desktop (less secure)
- Allow connections only from computers running Remote Desktop with Network Level Authentication (more secure)
Click on Apply and then OK.
You must enable the RemoteFX Windows Firewall rule manually if you enable Remote Desktop of VDI machine using either of the methods:
Using WMI command:
wmic rdtoggle where (AllowTSConnections=0) call SetAllowTSConnections 1
Toggling the registry:
REG.exe ADD "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0
Enabling firewall exceptions for Remote desktop using
netshcommand or Windows Firewall APIs:
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
Using PowerShell script provided on Microsoft TechNet Script Center to configure VDI desktops.
Upgrading to Windows 7 with SP1 on a virtual desktop that already had Remote Desktop enabled.