Windows8 remote desktop virtual machine configuration

  
In the previous article in the VDI hands-on lab series, we have completed the deployment of all server roles. In this article, we need to configure the remote desktop virtual machine. In the topology shown below, Win7VDI is a Hyper-V virtual machine on the RDVH server, has the Windows 7 operating system installed, and has joined the domain. In this article we need to configure Win7VDI to support VDI user access.

First of all, we need to modify the registry of Win7VDI. Enter Regedit on Win7VDI to run the registry editor, navigate to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server, and change the key value of AllowRemoteRPC to 1.

Figure 1
After modifying the registry, we need to configure the Win7VDI firewall. As shown in Figure 2, we need to set "Remote Service Management" as an exception in the firewall. Of course, in a test environment, if you feel trouble, you can also turn off the firewall directly, but it is not safe to do so in a production environment.

Figure 2
Next we need to configure the remote desktop of Win7VDI. In the computer properties of Win7VDI, as shown in Figure 3, switch to the "remote" label. Select to allow only computers with network-level authentication to access Win7VDI's remote desktop.

Figure 3
Finally, we need to configure RDP permissions for Win7VDI. This configuration needs to be done with WMIC. WMIC allows WMI to be managed from the command line. We first need to open a command prompt in Win7VDI. As shown in Figure 4, we need to open the command prompt with administrator privileges.

Figure 4
As shown in Figure 5, we need to enter the following command at the command prompt:
wmic /node:localhost RDPERMISSIONS where TerminalName="RDP-Tcp" CALL AddAccount " Contosordvh-srv$",1
wmic /node:localhost RDACCOUNT where "(TerminalName="RDP-Tcp" or TerminalName="Console") and AccountName="contosordvh-srv

Copyright © Windows knowledge All Rights Reserved