![]() Open an elevated Command Prompt window ( Run as administrator), and run commands in the remaining steps to reset the RDP configurations. For the name of the hive software, enter BROKENSOFTWARE. Then load the software hive \windows\system32\config\SOFTWARE under the HKEY_LOCAL_MACHINE key. The new registry hive is displayed under the HKEY_LOCAL_MACHINE key. For the name of the hive, enter BROKENSYSTEM. On the menu, select File > Load Hive:īrowse to the \windows\system32\config\SYSTEM folder on the OS disk that you attached. Copy all the files in this folder as a backup, in case a rollback is required. On the OS disk that you attached, navigate to the \windows\system32\config folder. Note the drive letter that is assigned to the attached OS disk. Restart the VM, and try again to connect to it by using RDP.Īfter the OS disk is attached to the recovery VM, make sure that the disk is flagged as Online in the Disk Management console. REG ADD "HKLM\SYSTEM\CurrentControlSet\control\Terminal Server\Winstations\RDP-Tcp" /v 'MaxInstanceCount' /t REG_DWORD /d 4294967295 /f Set the "Limit the maximum concurrent connections" control: REG ADD "HKLM\SYSTEM\CurrentControlSet\control\Terminal Server\Winstations\RDP-Tcp" /v 'MaxIdleTime' /t REG_DWORD /d 0 /f REG ADD "HKLM\SYSTEM\CurrentControlSet\control\Terminal Server\Winstations\RDP-Tcp" /v 'fInheritMaxIdleTime' /t REG_DWORD /d 1 /f REG ADD "HKLM\SYSTEM\CurrentControlSet\control\Terminal Server\Winstations\RDP-Tcp" /v 'MaxConnectionTime' /t REG_DWORD /d 0 /f REG ADD "HKLM\SYSTEM\CurrentControlSet\control\Terminal Server\Winstations\RDP-Tcp" /v 'fInheritMaxDisconnectionTime' /t REG_DWORD /d 1 /f REG ADD "HKLM\SYSTEM\CurrentControlSet\control\Terminal Server\Winstations\RDP-Tcp" /v 'MaxDisconnectionTime' /t REG_DWORD /d 0 /f REG ADD "HKLM\SYSTEM\CurrentControlSet\control\Terminal Server\Winstations\RDP-Tcp" /v 'fInheritMaxSessionTime' /t REG_DWORD /d 1 /f REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v 'fDisableAutoReconnect' /t REG_DWORD /d 0 /f REG ADD "HKLM\SYSTEM\CurrentControlSet\control\Terminal Server\Winstations\RDP-Tcp" /v 'fReconnectSame' /t REG_DWORD /d 1 /f REG ADD "HKLM\SYSTEM\CurrentControlSet\control\Terminal Server\Winstations\RDP-Tcp" /v 'fInheritReconnectSame' /t REG_DWORD /d 0 /f REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v 'KeepAliveInterval' /t REG_DWORD /d 1 /f REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v 'KeepAliveEnable' /t REG_DWORD /d 1 /f REG ADD "HKLM\SYSTEM\CurrentControlSet\control\Terminal Server\Winstations\RDP-Tcp" /v 'KeepAliveTimeout' /t REG_DWORD /d 1 /f ![]() REG ADD "HKLM\SYSTEM\CurrentControlSet\control\Terminal Server\Winstations\RDP-Tcp" /v 'fQueryUserConfigFromLocalMachine' /t REG_DWORD /d 1 /f Set RDP to load the user configuration of the client computer. REG ADD "HKLM\SYSTEM\CurrentControlSet\control\Terminal Server\Winstations\RDP-Tcp" /v 'MinEncryptionLevel' /t REG_DWORD /d 1 /f Lower the encryption level to the minimum setting to allow legacy RDP clients to connect. REG ADD "HKLM\SYSTEM\CurrentControlSet\control\Terminal Server\Winstations\RDP-Tcp" /v 'SecurityLayer' /t REG_DWORD /d 0 /f At this setting, communications between server and client use the native RDP encryption. If the Serial Console is not enabled on your VM, go to the next step. Then, run the following commands to reset the RDP configurations. Serial controlĬonnect to Serial Console and open CMD instance. To troubleshoot this issue, use Serial control or repair the VM offline by attaching the OS disk of the VM to a recovery VM. Solutionīefore you follow these steps, take a snapshot of the OS disk of the affected VM as a backup. ![]() Typically, this problem occurs on a VM that uses a custom image. This problem may occur if the RDP Listener is misconfigured. You can initially connect to the VM, but then the connection drops. You face intermittent RDP connectivity problems during your sessions. This article explains how to troubleshoot frequent disconnections to an Azure virtual machine (VM) through Remote Desktop Protocol RDP).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |