- Remove Computer Entries From Remote Desktop Connection In ...
- Rdp Registry Settings Windows 10 Free
- Remote Desktop Connection Registry

See more results. The following settings only apply when connecting to computers running Windows 7 and earlier operating system versions: Desktop composition This setting is supported only for a remote session to a computer running Windows 7 or Windows Server 2008 R2. The instructions in this article apply to: The 64-bit version of Windows Server 2008 R2 and later Windows Server operating systems. For information about running a 32-bit operating system in Azure, see Support for 32-bit operating systems in Azure VMs. For instance, you want simultaneous 2 Remote Desktop connections for Administrator user. This can be achieved by setting up the Terminal Server settings in the Windows registry editor. Below is the step by step guide to perform the registry changes to allow multiple RDP sessions for the single user. Login to your server via Remote Desktop. Windows 10 automatic update has proven to be working very well during the current Windows 10 technical preview period. All your personal profile, documents and installed applications persist and work as expected after an upgrade to a new build. However, not all settings are preserved during the upgrade.
Before you upload a Windows virtual machine (VM) from on-premises to Azure, you must prepare thevirtual hard disk (VHD or VHDX). Azure supports both generation 1 and generation 2 VMs that are inVHD file format and that have a fixed-size disk. The maximum size allowed for the OS VHD on a generation 1 VM is 2 TB.
You can convert a VHDX file to VHD, convert a dynamicallyexpanding disk to a fixed-size disk, but you can't change a VM's generation. For more information,seeShould I create a generation 1 or 2 VM in Hyper-V?and Support for generation 2 VMs on Azure.
For information about the support policy for Azure VMs, seeMicrosoft server software support for Azure VMs.
Note

The instructions in this article apply to:
- The 64-bit version of Windows Server 2008 R2 and later Windows Server operating systems. For information about running a 32-bit operating system in Azure, see Support for 32-bit operating systems in Azure VMs.
- If any Disaster Recovery tool will be used to migrate the workload, like Azure Site Recovery or Azure Migrate, this process is still required on the Guest OS to prepare the image before the migration.
System File Checker
Run Windows System File Checker utility before generalization of OS image
The System File Checker (SFC) is used to verify and replace Windows system files.
Important
Use an elevated PowerShell session to run the examples in this article.
Run the SFC command:
After the SFC scan completes, install Windows Updates and restart the computer.
Set Windows configurations for Azure
Note
Azure platform mounts an ISO file to the DVD-ROM when a Windows VM is created from a generalizedimage. For this reason, the DVD-ROM must be enabled in the OS in the generalized image. If it isdisabled, the Windows VM will be stuck at out-of-box experience (OOBE).
Remove any static persistent routes in the routing table:
- To view the routing table, run
route.exe print. - Check the Persistence Routes section. If there's a persistent route, use the
route.exe deletecommand to remove it.
- To view the routing table, run
Remove the WinHTTP proxy:
If the VM needs to work with a specific proxy, add a proxy exception for the Azure IP address(168.63.129.16)so the VM can connect to Azure:
Open DiskPart:
Set the disk SAN policy to
Onlineall:Set Coordinated Universal Time (UTC) time for Windows. Also, set the startup type of the Windowstime service w32time to Automatic:
Set the power profile to high performance:
Make sure the environmental variables TEMP and TMP are set to their default values:
For VMs with legacy operating systems (Windows Server 2012 R2 or Windows 8.1 and below), make sure the latest Hyper-V Integration Component Services are installed. For more information, see Hyper-V integration components update for Windows VM.
Note
In a scenario where VMs are to be set up with a disaster recovery solution between the on-premise VMware server and Azure, the Hyper-V Integration Component Services can't be used. If that’s the case, please contact the VMware support to migrate the VM to Azure and make it co-reside in VMware server.
Check the Windows services

Make sure that each of the following Windows services is set to the Windows default value. Theseservices are the minimum that must be configured to ensure VM connectivity. To set the startupsettings, run the following example:
Update remote desktop registry settings
Make sure the following settings are configured correctly for remote access:
Note
If you receive an error message when runningSet-ItemProperty -Path 'HKLM:SOFTWAREPoliciesMicrosoftWindows NTTerminal Services -Name <string> -Value <object>,you can safely ignore it. It means the domain isn't setting that configuration through a GroupPolicy Object.
Remote Desktop Protocol (RDP) is enabled:
The RDP port is set up correctly using the default port of 3389:
When you deploy a VM, the default rules are created for port 3389. To change the port number, dothat after the VM is deployed in Azure.
The listener is listening on every network interface:
Configure network-level authentication (NLA) mode for the RDP connections:
Set the keep-alive value:
Set the reconnect options:
Limit the number of concurrent connections:
Remove any self-signed certificates tied to the RDP listener:
This code ensures that you can connect when you deploy the VM. You can also review thesesettings after the VM is deployed in Azure.
If the VM is part of a domain, check the following policies to make sure the previous settingsaren't reverted.
Goal Policy Value RDP is enabled Computer ConfigurationPoliciesWindows SettingsAdministrative TemplatesComponentsRemote Desktop ServicesRemote Desktop Session HostConnections Allow users to connect remotely by using Remote Desktop NLA group policy SettingsAdministrative TemplatesComponentsRemote Desktop ServicesRemote Desktop Session HostSecurity Require user authentication for remote access by using NLA Keep-alive settings Computer ConfigurationPoliciesWindows SettingsAdministrative TemplatesWindows ComponentsRemote Desktop ServicesRemote Desktop Session HostConnections Configure keep-alive connection interval Reconnect settings Computer ConfigurationPoliciesWindows SettingsAdministrative TemplatesWindows ComponentsRemote Desktop ServicesRemote Desktop Session HostConnections Reconnect automatically Limited number of connection settings Computer ConfigurationPoliciesWindows SettingsAdministrative TemplatesWindows ComponentsRemote Desktop ServicesRemote Desktop Session HostConnections Limit number of connections
Configure Windows Firewall rules
Remove Computer Entries From Remote Desktop Connection In ...
Turn on Windows Firewall on the three profiles (domain, standard, and public):
Run the following example to allow WinRM through the three firewall profiles (domain, private,and public), and enable the PowerShell remote service:
Enable the following firewall rules to allow the RDP traffic:
Enable the rule for file and printer sharing so the VM can respond to ping requests inside thevirtual network:
Create a rule for the Azure platform network:
If the VM is part of a domain, check the following Azure AD policies to make sure the previoussettings aren't reverted.
Goal Policy Value Enable the Windows Firewall profiles Computer ConfigurationPoliciesWindows SettingsAdministrative TemplatesNetworkNetwork ConnectionWindows FirewallDomain ProfileWindows Firewall Protect all network connections Enable RDP Computer ConfigurationPoliciesWindows SettingsAdministrative TemplatesNetworkNetwork ConnectionWindows FirewallDomain ProfileWindows Firewall Allow inbound Remote Desktop exceptions Computer ConfigurationPoliciesWindows SettingsAdministrative TemplatesNetworkNetwork ConnectionWindows FirewallStandard ProfileWindows Firewall Allow inbound Remote Desktop exceptions Enable ICMP-V4 Computer ConfigurationPoliciesWindows SettingsAdministrative TemplatesNetworkNetwork ConnectionWindows FirewallDomain ProfileWindows Firewall Allow ICMP exceptions Computer ConfigurationPoliciesWindows SettingsAdministrative TemplatesNetworkNetwork ConnectionWindows FirewallStandard ProfileWindows Firewall Allow ICMP exceptions
Verify the VM
Make sure the VM is healthy, secure, and RDP accessible:
To make sure the disk is healthy and consistent, check the disk at the next VM restart:
Make sure the report shows a clean and healthy disk.
Set the Boot Configuration Data (BCD) settings.
The dump log can be helpful in troubleshooting Windows crash issues. Enable the dump logcollection:
Verify that the Windows Management Instrumentation (WMI) repository is consistent:
If the repository is corrupted, see WMI: Repository corruption or not.
Make sure no other application is using port 3389. This port is used for the RDP service inAzure. To see which ports are used on the VM, run
netstat.exe -anob:To upload a Windows VHD that's a domain controller:
Follow these extra steps to prepare the disk.
Make sure you know the Directory Services Restore Mode (DSRM) password in case you ever have tostart the VM in DSRM. For more information, seeSet a DSRM password.
Make sure you know the built-in administrator account and password. You might want to reset thecurrent local administrator password and make sure you can use this account to sign in to Windowsthrough the RDP connection. This access permission is controlled by the 'Allow log on throughRemote Desktop Services' Group Policy Object. View this object in the Local Group Policy Editor:
Computer ConfigurationWindows SettingsSecurity SettingsLocal PoliciesUser Rights Assignment
Check the following Azure AD policies to make sure they're not blocking RDP access:
Computer ConfigurationWindows SettingsSecurity SettingsLocal PoliciesUser Rights AssignmentDeny access to this computer from the networkComputer ConfigurationWindows SettingsSecurity SettingsLocal PoliciesUser Rights AssignmentDeny log on through Remote Desktop Services
Check the following Azure AD policy to make sure they're not removing any of the required accessaccounts:
Computer ConfigurationWindows SettingsSecurity SettingsLocal PoliciesUser Rights AssignmentAccess this computer from the network
The policy should list the following groups:
Administrators
Backup Operators
Everyone
Users
Restart the VM to make sure that Windows is still healthy and can be reached through the RDPconnection. At this point, consider creating a VM on your local Hyper-V server to make sure theVM starts completely. Then test to make sure you can reach the VM through RDP.
Remove any extra Transport Driver Interface (TDI) filters. For example, remove software thatanalyzes TCP packets or extra firewalls.
Uninstall any other third-party software or driver that's related to physical components or anyother virtualization technology.
Install Windows updates
Note
To avoid an accidental reboot during the VM provisioning, we recommend completing all Windows update installations and to make sure there’s no pending restart. One way to do this is to install all Windows updates and to reboot the VM before performing the migration to Azure.
If you also need to do a generalization of the OS (sysprep), you must update Windows and restart the VM before running the Sysprep command.
Ideally, you should keep the machine updated to the patch level, if this isn't possible, make surethe following updates are installed. To get the latest updates, see the Windows update historypages: Windows 10, and Windows Server 2019,Windows 8.1, and Windows Server 2012 R2 andWindows 7 SP1, and Windows Server 2008 R2 SP1.
| Component | Binary | Windows 7 SP1, Windows Server 2008 R2 SP1 | Windows 8, Windows Server 2012 | Windows 8.1, Windows Server 2012 R2 | Windows 10 v1607, Windows Server 2016 v1607 | Windows 10 v1703 | Windows 10 v1709, Windows Server 2016 v1709 | Windows 10 v1803, Windows Server 2016 v1803 |
|---|---|---|---|---|---|---|---|---|
| Storage | disk.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.17638 / 6.2.9200.21757 - KB3137061 | 6.3.9600.18203 - KB3137061 | - | - | - | - |
| storport.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.17188 / 6.2.9200.21306 - KB3018489 | 6.3.9600.18573 - KB4022726 | 10.0.14393.1358 - KB4022715 | 10.0.15063.332 | - | - | |
| ntfs.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.17623 / 6.2.9200.21743 - KB3121255 | 6.3.9600.18654 - KB4022726 | 10.0.14393.1198 - KB4022715 | 10.0.15063.447 | - | - | |
| Iologmsg.dll | 6.1.7601.23403 - KB3125574 | 6.2.9200.16384 - KB2995387 | - | - | - | - | - | |
| Classpnp.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.17061 / 6.2.9200.21180 - KB2995387 | 6.3.9600.18334 - KB3172614 | 10.0.14393.953 - KB4022715 | - | - | - | |
| Volsnap.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.17047 / 6.2.9200.21165 - KB2975331 | 6.3.9600.18265 - KB3145384 | - | 10.0.15063.0 | - | - | |
| partmgr.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.16681 - KB2877114 | 6.3.9600.17401 - KB3000850 | 10.0.14393.953 - KB4022715 | 10.0.15063.0 | - | - | |
| volmgr.sys | 10.0.15063.0 | - | - | |||||
| Volmgrx.sys | 6.1.7601.23403 - KB3125574 | - | - | - | 10.0.15063.0 | - | - | |
| Msiscsi.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.21006 - KB2955163 | 6.3.9600.18624 - KB4022726 | 10.0.14393.1066 - KB4022715 | 10.0.15063.447 | - | - | |
| Msdsm.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.21474 - KB3046101 | 6.3.9600.18592 - KB4022726 | - | - | - | - | |
| Mpio.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.21190 - KB3046101 | 6.3.9600.18616 - KB4022726 | 10.0.14393.1198 - KB4022715 | - | - | - | |
| vmstorfl.sys | 6.3.9600.18907 - KB4072650 | 6.3.9600.18080 - KB3063109 | 6.3.9600.18907 - KB4072650 | 10.0.14393.2007 - KB4345418 | 10.0.15063.850 - KB4345419 | 10.0.16299.371 - KB4345420 | - | |
| Fveapi.dll | 6.1.7601.23311 - KB3125574 | 6.2.9200.20930 - KB2930244 | 6.3.9600.18294 - KB3172614 | 10.0.14393.576 - KB4022715 | - | - | - | |
| Fveapibase.dll | 6.1.7601.23403 - KB3125574 | 6.2.9200.20930 - KB2930244 | 6.3.9600.17415 - KB3172614 | 10.0.14393.206 - KB4022715 | - | - | - | |
| Network | netvsc.sys | - | - | - | 10.0.14393.1198 - KB4022715 | 10.0.15063.250 - KB4020001 | - | - |
| mrxsmb10.sys | 6.1.7601.23816 - KB4022722 | 6.2.9200.22108 - KB4022724 | 6.3.9600.18603 - KB4022726 | 10.0.14393.479 - KB4022715 | 10.0.15063.483 | - | - | |
| mrxsmb20.sys | 6.1.7601.23816 - KB4022722 | 6.2.9200.21548 - KB4022724 | 6.3.9600.18586 - KB4022726 | 10.0.14393.953 - KB4022715 | 10.0.15063.483 | - | - | |
| mrxsmb.sys | 6.1.7601.23816 - KB4022722 | 6.2.9200.22074 - KB4022724 | 6.3.9600.18586 - KB4022726 | 10.0.14393.953 - KB4022715 | 10.0.15063.0 | - | - | |
| tcpip.sys | 6.1.7601.23761 - KB4022722 | 6.2.9200.22070 - KB4022724 | 6.3.9600.18478 - KB4022726 | 10.0.14393.1358 - KB4022715 | 10.0.15063.447 | - | - | |
| http.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.17285 - KB3042553 | 6.3.9600.18574 - KB4022726 | 10.0.14393.251 - KB4022715 | 10.0.15063.483 | - | - | |
| vmswitch.sys | 6.1.7601.23727 - KB4022719 | 6.2.9200.22117 - KB4022724 | 6.3.9600.18654 - KB4022726 | 10.0.14393.1358 - KB4022715 | 10.0.15063.138 | - | - | |
| Core | ntoskrnl.exe | 6.1.7601.23807 - KB4022719 | 6.2.9200.22170 - KB4022718 | 6.3.9600.18696 - KB4022726 | 10.0.14393.1358 - KB4022715 | 10.0.15063.483 | - | - |
| Remote Desktop Services | rdpcorets.dll | 6.2.9200.21506 - KB4022719 | 6.2.9200.22104 - KB4022724 | 6.3.9600.18619 - KB4022726 | 10.0.14393.1198 - KB4022715 | 10.0.15063.0 | - | - |
| termsrv.dll | 6.1.7601.23403 - KB3125574 | 6.2.9200.17048 - KB2973501 | 6.3.9600.17415 - KB3000850 | 10.0.14393.0 - KB4022715 | 10.0.15063.0 | - | - | |
| termdd.sys | 6.1.7601.23403 - KB3125574 | - | - | - | - | - | - | |
| win32k.sys | 6.1.7601.23807 - KB4022719 | 6.2.9200.22168 - KB4022718 | 6.3.9600.18698 - KB4022726 | 10.0.14393.594 - KB4022715 | - | - | - | |
| rdpdd.dll | 6.1.7601.23403 - KB3125574 | - | - | - | - | - | - | |
| rdpwd.sys | 6.1.7601.23403 - KB3125574 | - | - | - | - | - | - | |
| Security | MS17-010 | KB4012212 | KB4012213 | KB4012213 | KB4012606 | KB4012606 | - | - |
| KB4012216 | KB4013198 | KB4013198 | - | - | ||||
| KB4012215 | KB4012214 | KB4012216 | KB4013429 | KB4013429 | - | - | ||
| KB4012217 | KB4013429 | KB4013429 | - | - | ||||
| CVE-2018-0886 | KB4103718 | KB4103730 | KB4103725 | KB4103723 | KB4103731 | KB4103727 | KB4103721 | |
| KB4103712 | KB4103726 | KB4103715 |
Note
To avoid an accidental reboot during VM provisioning, we recommend ensuring that all WindowsUpdate installations are finished and that no updates are pending. One way to do this is toinstall all possible Windows updates and reboot once before you run the sysprep.exe command.
Determine when to use Sysprep
System Preparation Tool (sysprep.exe) is a process you can run to reset a Windows installation.Sysprep provides an 'out of the box' experience by removing all personal data and resetting severalcomponents.
You typically run sysprep.exe to create a template from which you can deploy several other VMsthat have a specific configuration. The template is called a generalized image.
To create only one VM from one disk, you don't have to use Sysprep. Instead, you can create the VMfrom a specialized image. For information about how to create a VM from a specialized disk, see:
To create a generalized image, you need to run Sysprep. For more information, seeHow to use Sysprep: An introduction.
Not every role or application that's installed on a Windows-based computer supports generalizedimages. Before you use this procedure, make sure Sysprep supports the role of the computer. For moreinformation, seeSysprep support for server roles.
In particular, Sysprep requires the drives to be fully decrypted before execution. If you have enabled encryption on your VM, disable it before running Sysprep.
Generalize a VHD
Note
After you run sysprep.exe in the following steps, turn off the VM. Don't turn it back on untilyou create an image from it in Azure.
Sign in to the Windows VM.
Run a PowerShell session as an administrator.
Delete the panther directory (C:WindowsPanther).
Change the directory to
%windir%system32sysprep. Then runsysprep.exe.In the System Preparation Tool dialog box, select Enter System Out-of-Box Experience(OOBE), and make sure the Generalize checkbox is selected.
In Shutdown Options, select Shutdown.
Select OK.
When Sysprep finishes, shut down the VM. Don't use Restart to shut down the VM.
Now the VHD is ready to be uploaded. For more information about how to create a VM from ageneralized disk, seeUpload a generalized VHD and use it to create a new VM in Azure.
Note
A custom unattend.xml file is not supported. Although we do support theadditionalUnattendContent property, that provides only limited support for addingmicrosoft-windows-shell-setupoptions into the unattend.xml file that the Azure provisioning agent uses. You can use, forexample,additionalUnattendContentto add FirstLogonCommands and LogonCommands. For more information, seeadditionalUnattendContent FirstLogonCommands example.
Convert the virtual disk to a fixed size VHD
Use one of the methods in this section to convert and resize your virtual disk to the required format for Azure:
Back up the VM before you run the virtual disk conversion or resize process.
Make sure that the Windows VHD works correctly on the local server. Resolve any errors within theVM itself before you try to convert or upload it to Azure.
Convert the virtual disk to type fixed.
Resize the virtual disk to meet Azure requirements:
Disks in Azure must have a virtual size aligned to 1 MiB. If your VHD is a fraction of 1 MiB, you'll need to resize the disk to a multiple of 1 MiB. Disks that are fractions of a MiB cause errors when creating images from the uploaded VHD. To verify the size you can use the PowerShell Get-VHD cmdlet to show 'Size', which must be a multiple of 1 MiB in Azure, and 'FileSize', which will be equal to 'Size' plus 512 bytes for the VHD footer.
The maximum size allowed for the OS VHD with a generation 1 VM is 2,048 GiB (2 TiB),
The maximum size for a data disk is 32,767 GiB (32 TiB).
Note
- If you are preparing a Windows OS disk after you convert to a fixed disk and resize if needed, create a VM that uses the disk. Start and sign in to the VM and continue with the sections in this article to finish preparing it for uploading.
- If you are preparing a data disk you may stop with this section and proceed to uploading your disk.
Use Hyper-V Manager to convert the disk
- Open Hyper-V Manager and select your local computer on the left. In the menu above the computerlist, select Action > Edit Disk.
- On the Locate Virtual Hard Disk page, select your virtual disk.
- On the Choose Action page, select Convert > Next.
- To convert from VHDX, select VHD > Next.
- To convert from a dynamically expanding disk, select Fixed size > Next.
- Locate and select a path to save the new VHD file.
- Select Finish.
Rdp Registry Settings Windows 10 Free
Use PowerShell to convert the disk
You can convert a virtual disk using the Convert-VHDcmdlet in PowerShell. If you need information about installing this cmdlet see Install the Hyper-V role.
The following example converts the disk from VHDX to VHD. It also converts the disk from adynamically expanding disk to a fixed-size disk.
In this example, replace the value for Path with the path to the virtual hard disk that you wantto convert. Replace the value for DestinationPath with the new path and name of the converteddisk.
Use Hyper-V Manager to resize the disk
- Open Hyper-V Manager and select your local computer on the left. In the menu above the computerlist, select Action > Edit Disk.
- On the Locate Virtual Hard Disk page, select your virtual disk.
- On the Choose Action page, select Expand > Next.
- On the Locate Virtual Hard Disk page, enter the new size in GiB > Next.
- Select Finish.
Use PowerShell to resize the disk
Remote Desktop Connection Registry
You can resize a virtual disk using the Resize-VHDcmdlet in PowerShell. If you need information about installing this cmdlet see Install the Hyper-V role.
The following example resizes the disk from 100.5 MiB to 101 MiB to meet the Azure alignment requirement.
In this example, replace the value for Path with the path to the virtual hard disk that you wantto resize. Replace the value for SizeBytes with the new size in bytes for the disk.
Convert from VMware VMDK disk format
If you have a Windows VM image in the VMDK file format, then you can use Azure Migrate to convert the VMDK and upload it to Azure.
Complete the recommended configurations
The following settings don't affect VHD uploading. However, we strongly recommend that youconfigured them.
Install theAzure Virtual Machine Agent. Thenyou can enable VM extensions. The VM extensions implement most of the critical functionality thatyou might want to use with your VMs. You'll need the extensions, for example, to reset passwordsor configure RDP. For more information, see theAzure Virtual Machine Agent overview.
After you create the VM in Azure, we recommend that you put the page file on the temporal drivevolume to improve performance. You can set up the file placement as follows:
If a data disk is attached to the VM, the temporal drive volume's letter is typically D. Thisdesignation could be different, depending on your settings and the number of available drives.
- We recommend disabling script blockers that might be provided by antivirus software. They mightinterfere and block the Windows Provisioning Agent scripts executed when you deploy a new VMfrom your image.
Next steps
