|
| 1 | +--- |
| 2 | +title: Troubleshoot Dev Box Remote Desktop issues |
| 3 | +description: Learn how to resolve common Remote Desktop connection issues with dev doxes to maintain a stable workflow. |
| 4 | +author: RoseHJM |
| 5 | +ms.author: rosemalcolm |
| 6 | +ms.service: dev-box |
| 7 | +ms.topic: troubleshooting-general |
| 8 | +ms.date: 10/22/2024 |
| 9 | + |
| 10 | +#customer intent: As a developer, I want to troubleshoot my Remote Desktop connection issues with dev boxes so that I can maintain a stable and efficient workflow. |
| 11 | +--- |
| 12 | + |
| 13 | +# Troubleshoot Remote Desktop connectivity issues with dev boxes |
| 14 | + |
| 15 | +If you're experiencing problems with your Remote Desktop connection to your dev box, this guide can help you find and fix the issues quickly. Whether it's frequent disconnections, latency, or sign-in problems, we've got solutions that can get you back on track. |
| 16 | + |
| 17 | +## Prerequisites |
| 18 | + |
| 19 | +Before you begin troubleshooting, ensure you have: |
| 20 | + |
| 21 | +- Access to your dev box. |
| 22 | +- Administrative permissions if needed. |
| 23 | +- An understanding of your organization's policies related to dev boxes. |
| 24 | + |
| 25 | +## Steps for troubleshooting |
| 26 | + |
| 27 | +Remote Desktop connections are essential for accessing your Dev Box. However, connectivity issues cansometimes arise due to various factors. This guide provides a comprehensive step-by-step approach to troubleshooting common Remote Desktop connection problems, ensuring that your workflow remains uninterrupted. |
| 28 | + |
| 29 | +Before proceeding with troubleshooting, ensure that your Remote Desktop app is updated and both your client computer and Dev Box have the latest updates installed. |
| 30 | + |
| 31 | +Be aware that any improper network configurations on your Dev Box can disrupt Remote Desktop connections. |
| 32 | + |
| 33 | +Additionally, if you haven't accessed your Dev Box in the past three months, check if you might have been removed from Azure Active Directory (AAD) due to inactivity. In such cases, contact the Cloud PC Service support team for assistance in regaining access. |
| 34 | + |
| 35 | +### Step 0: Preliminary Checks |
| 36 | +- **Internet Connection:** Verify that your local machine has an active internet connection. |
| 37 | +- **Dev Box Status:** Confirm that your Dev Box is running through the Dev Box portal. |
| 38 | +- **Proxy Settings:** Incorrect internet proxy settings can interfere with the Remote Desktop experience, so ensure these are correctly configured. |
| 39 | + |
| 40 | +### Step 1: Windows Update and App Restart |
| 41 | +- **Pending Updates:** If a Windows update is in progress, it may take up to 30 minutes, during which your Dev Box won't connect. |
| 42 | +- **Restart Remote Desktop:** Close all instances of the Remote Desktop app, terminate any 'msrdc.exe' and 'msrdcw.exe' processes via Task Manager, and then reopen the app to attempt reconnection. |
| 43 | + |
| 44 | +### Step 2: Addressing App Hang and Authentication Issues |
| 45 | +- **App Hang:** If the Remote Desktop app hangs, capture a process dump of MSRDC.exe and create a support request. Restart your computer and try connecting again. |
| 46 | +- **Authentication Errors:** If denied sign-in despite correct credentials, check the AAD join status using dsregcmd.exe /status. Resolve any errors with the helpdesk and restart your computer. If authentication errors persist, unsubscribe and resubscribe to your Dev Box pool in the app. Ensure that your client machine connects to the MSFT VPN if using PIN authentication with a Hybrid-AD joined Dev Box. |
| 47 | + |
| 48 | +### Step 3: Browser Client Connection |
| 49 | +- **Browser Access:** Attempt to connect via the browser client by visiting https://DevBox.microsoft.com and selecting "Open in browser". |
| 50 | +- **Black Screen Issue:** If the RDP window is black, "Shutdown" or "Stop" your Dev Box via the portal and restart it. |
| 51 | + |
| 52 | +### Step 4: Connection Drops During High CPU Load |
| 53 | +**Registry Adjustment:** If you experience frequent connection drops with the Remote Desktop app during high CPU load, ensure your Dev Box has the latest Windows 11 build. Set the `SetGpuRealtimePriority` registry value to DWORD 2 in the Dev Box and restart. |
| 54 | + |
| 55 | +``` |
| 56 | +key: HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations |
| 57 | +value name: SetGpuRealtimePriority |
| 58 | +value: DWORD 2 |
| 59 | +``` |
| 60 | + |
| 61 | +You can set the `SetGpuRealtimePriority` registry value by using this command in an elevated shell: |
| 62 | + |
| 63 | +``` |
| 64 | +reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations" /v SetGpuRealtimePriority /d 2 /t REG_DWORD |
| 65 | +``` |
| 66 | + |
| 67 | +### Step 5: Connection Drops During Low CPU Usage |
| 68 | + |
| 69 | +If you experience frequent connection drops with the Remote Desktop app despite low CPU usage on the Dev Box, switch Remote Desktop to use TCP instead of UDP. |
| 70 | + |
| 71 | +You can configure this setting through a registry edit, or through Group Policy. |
| 72 | + |
| 73 | +**Use TCP instead of UDP - Registry edit:** |
| 74 | +Close the Remote Desktop app, apply the following registry setting on your client computer, and try reconnecting. |
| 75 | + |
| 76 | +``` |
| 77 | +key: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client |
| 78 | +value name: fClientDisableUDP |
| 79 | +value: DWORD 1 |
| 80 | +``` |
| 81 | + |
| 82 | +You can set the above using this command in an elevated shell: |
| 83 | + |
| 84 | +``` |
| 85 | +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client" /v fClientDisableUDP /d 1 /t REG_DWORD |
| 86 | +``` |
| 87 | + |
| 88 | +**Use TCP instead of UDP - Group policy** |
| 89 | +Alternatively, use Group Policy Editor on your Dev Box to set RDP transport protocols to "Use only TCP". |
| 90 | + |
| 91 | +1. Open the Group Policy Editor on your Dev Box. |
| 92 | +2. Navigate to **Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections**. |
| 93 | +3. Open the policy setting **Select RDP transport protocols**. |
| 94 | +4. Set it to **Enabled**. |
| 95 | +5. For **Select Transport Type**, select **Use only TCP**. |
| 96 | + |
| 97 | +If the preceeding steps don't resolve your issue, please contact the Dev Box team support by creating an incident [here ]. For urgent or widespread issues, raise the priority of the incident or email the Dev Box team directly at [email protected]. |
| 98 | + |
| 99 | +Include the following details in your incident report: |
| 100 | + |
| 101 | +- The time the issue occurred |
| 102 | +- Impacted users |
| 103 | +- A detailed description of the problem |
| 104 | +- The Activity ID from your Remote Desktop session, if available. You can find this ID by clicking on the connection bar during your session. |
| 105 | + |
| 106 | + :::image type="content" source="media/how-to-resolve-dev-box-connectivity-issues/troubleshooting-connection-bar.png" alt-text="Alt text"::: |
| 107 | + |
| 108 | +- Include information from the connection dialog. |
| 109 | + |
| 110 | + :::image type="content" source="media/how-to-resolve-dev-box-connectivity-issues/troubleshooting-connection-information-dialog.png" alt-text="alt text"::: |
| 111 | + |
| 112 | +In macOS clients use the terminal to change connections to TCP instead of UDP: |
| 113 | + |
| 114 | +In the app: |
| 115 | +``` |
| 116 | +defaults write com.microsoft.rdc.macos ClientSettings.EnableAvdUdpSideTransport false |
| 117 | +``` |
| 118 | + |
| 119 | +In the beta app: |
| 120 | +``` |
| 121 | +defaults write com.microsoft.rdc.osx.beta ClientSettings.EnableAvdUdpSideTransport false |
| 122 | +``` |
| 123 | + |
| 124 | + |
| 125 | +## Related content |
| 126 | +- [Troubleshoot and resolve dev box Remote Desktop connectivity issues](how-to-troubleshoot-repair-dev-box.md) |
0 commit comments