Deploying Personal Virtual Desktops by using Remote Desktop Web Access Step-by-Step Guide

Abstract
Personal virtual desktops are virtual machines that are assigned to a user within your organization and available by using either RemoteApp and Desktop Connection or Remote Desktop Web Access (RD Web Access). In this guide, we will set up a personal virtual desktop and connect to it by using RD Web Access.

    Scenario: Deploying a personal virtual desktop by using RD Web Access in a test environment

We recommend that you first use the steps provided in this guide in a test lab environment. Step-by-step guides are not necessarily meant to be used to deploy Windows Server features without additional deployment documentation and should be used with discretion as a stand-alone document.

Upon completion of this step-by-step guide, you will have a personal virtual desktop assigned to a user account that can connect by using RD Web Access. You can then test and verify this functionality by connecting to the personal virtual desktop from RD Web Access as a standard user.

The test environment described in this guide includes seven computers connected to a private network using the following operating systems, applications, and services:

 

Computer name Operating system Applications and services
CONTOSO-DC Windows Server 2008 R2 Active Directory Domain Services (AD DS), DNS
RDSH-SRV Windows Server 2008 R2 RD Session Host
CONTOSO-CLNT Windows® 7 Remote Desktop Connection
RDVH-SRV Windows Server 2008 R2 RD Virtualization Host, Hyper-V
RDCB-SRV Windows Server 2008 R2 RD Connection Broker
RDWA-SRV Windows Server 2008 R2 RD Web Access
PVD1-CLNT Windows 7 Virtual machine

 

 

The computers form a private network and are connected through a common hub or Layer 2 switch. This step-by-step exercise uses private addresses throughout the test lab configuration. The private network ID 10.0.0.0/24 is used for the network. The domain controller is named CONTOSO-DC for the domain named contoso.com. The following figure shows the configuration of the test environment.

 

 

Step 1: Setting Up the Contoso Domain

 

To prepare your personal virtual desktop test environment in the CONTOSO domain, you must complete the following tasks:

  • Configure the Remote Desktop Virtualization Host (RD Virtualization Host) server (RDVH-SRV)
  • Configure the Remote Desktop Connection Broker (RD Connection Broker) server (RDCB-SRV)
  • Configure the Remote Desktop Web Access (RD Web Access) server (RDWA-SRV)

Use the following table as a reference when setting up the appropriate computer names, operating systems, and network settings that are required to complete the steps in this guide.

Important

Before you configure your computers with static Internet Protocol (IP) addresses, we recommend that you first complete Windows product activation while each of your computers still has Internet connectivity. You should also install any available critical security updates from Windows Update (http://go.microsoft.com/fwlink/?LinkID=47370).

 

Computer name Operating system requirement IP settings DNS settings
CONTOSO-DC Windows Server 2008 R2 IP address:

10.0.0.1

Subnet mask:

255.255.255.0

Default gateway:

10.0.0.1

Configured by DNS server role
RDSH-SRV Windows Server 2008 R2 IP address:

10.0.0.2

Subnet mask:

255.255.255.0

Default gateway:

10.0.0.1

Preferred:

10.0.0.1

CONTOSO-CLNT Windows 7 IP address:

10.0.0.3

Subnet mask:

255.255.255.0

Default gateway:

10.0.0.1

Preferred:

10.0.0.1

RDVH-SRV Windows Server 2008 R2 IP address:

10.0.0.4

Subnet mask:

255.255.255.0

Default gateway:

10.0.0.1

Preferred:

10.0.0.1

RDCB-SRV Windows Server 2008 R2 IP address:

10.0.0.5

Subnet mask:

255.255.255.0

Default gateway:

10.0.0.1

Preferred:

10.0.0.1

RDWA-SRV Windows Server 2008 R2 IP address:

10.0.0.6

Subnet mask:

255.255.255.0

Default gateway:

10.0.0.1

Preferred:

10.0.0.1

 

Configure the RD Virtualization Host server (RDVH-SRV)

To configure the RD Virtualization Host server, you must:

  • Install Windows Server 2008 R2.
  • Configure TCP/IP properties.
  • Join RDVH-SRV to the contoso.com domain.
  • Install the RD Virtualization Host role service.
Note

This will also install the Hyper-V role service.

First, install Windows Server 2008 R2 on a stand-alone server.

To install Windows Server 2008 R2
1.   Start your computer by using the Windows Server 2008 R2 product CD.

2.   When prompted for a computer name, type RDVH-SRV.

3.   Follow the rest of the instructions that appear on your screen to finish the installation.

Next, configure TCP/IP properties so that RDVH-SRV has an IPv4 static IP address of 10.0.0.4.

To configure TCP/IP properties
1.   Log on to RDVH-SRV with the RDVH-SRV\Administrator account.

2.   Click Start, click Control Panel, click Network and Internet, click Network and Sharing Center, click Change adapter settings, right-click Local Area Connection, and then click Properties.

3.   On the Networking tab, click Internet Protocol Version 4 (TCP/IPv4), and then click Properties.

4.   Click Use the following IP address. In the IP address box, type 10.0.0.4. In the Subnet mask box, type 255.255.255.0. In the Default gateway box, type 10.0.0.1.

5.   Click Use the following DNS server addresses. In the Preferred DNS server box, type 10.0.0.1.

6.   Click OK, and then close the Local Area Connection Properties dialog box.

Next, join RDVH-SRV to the contoso.com domain.

To join RDVH-SRV to the contoso.com domain
1.   Click Start, right-click Computer, and then click Properties.

2.   Under Computer name, domain, and workgroup settings, click Change settings.

3.   On the Computer Name tab, click Change.

4.   In the Computer Name/Domain Changes dialog box, under Member of, click Domain, and then type contoso.com.

5.   Click More, and in the Primary DNS suffix of this computer box, type contoso.com.

6.   Click OK, and then click OK again.

7.   When a Computer Name/Domain Changes dialog box appears prompting you for administrative credentials, provide the credentials for CONTOSO\Administrator, and then click OK.

8.   When a Computer Name/Domain Changes dialog box appears welcoming you to the contoso.com domain, click OK.

9.   When a Computer Name/Domain Changes dialog box appears telling you that the computer must be restarted, click OK, and then click Close.

10.  Click Restart Now.

Finally, install the RD Virtualization Host role service by using Server Manager.

To install the RD Virtualization Host role service
1.   Log on to RDVH-SRV as CONTOSO\Administrator.

2.   Click Start, point to Administrative Tools, and then click Server Manager.

3.   Under the Roles Summary heading, click Add Roles.

4.   On the Before You Begin page, click Next.

5.   On the Select Server Roles page, select the Remote Desktop Services check box, and then click Next.

6.   On the Remote Desktop Services page, click Next.

7.   On the Select Role Services page, select the Remote Desktop Virtualization Host check box.

8.   Review the information about adding Hyper-V, click Add Required Role Services, and then click Next.

9.   On the Confirm Installation Selections page, click Install.

10.  After the installation is complete, click Close.

Configure the RD Connection Broker server (RDCB-SRV)

To configure the RD Connection Broker server by using Windows Server 2008 R2, you must:

  • Install Windows Server 2008 R2.
  • Configure TCP/IP properties.
  • Join RDCB-SRV to the contoso.com domain.
  • Install the RD Connection Broker role service.
  • Configure a certificate used to digitally sign the RDP file.
  • Add the thumbprint of the certificate used to digitally sign the RDP file to the Default Domain Policy by using Group Policy Management.

First, install Windows Server 2008 R2 as a stand-alone server.

To install Windows Server 2008 R2
1.   Start your computer by using the Windows Server 2008 R2 product CD.

2.   When prompted for a computer name, type RDCB-SRV.

3.   Follow the rest of the instructions that appear on your screen to finish the installation.

Next, configure TCP/IP properties so that RDCB-SRV has a static IP address of 10.0.0.5. In addition, configure the DNS server by using the IP address of CONTOSO-DC (10.0.0.1).

To configure TCP/IP properties
1.   Log on to RDCB-SRV with the RDCB-SRV\Administrator account or another user account in the local Administrators group.

2.   Click Start, click Control Panel, click Network and Internet, click Network and Sharing Center, click Change adapter settings, right-click Local Area Connection, and then click Properties.

3.   On the Networking tab, click Internet Protocol Version 4 (TCP/IPv4), and then click Properties.

4.   Click Use the following IP address. In the IP address box, type 10.0.0.5. In the Subnet mask box, type 255.255.255.0. In the Default gateway box, type 10.0.0.1.

5.   Click Use the following DNS server addresses. In the Preferred DNS server box, type 10.0.0.1.

6.   Click OK, and then close the Local Area Connection Properties dialog box.

Next, join RDCB-SRV to the contoso.com domain.

To join RDCB-SRV to the contoso.com domain
1.   Click Start, right-click Computer, and then click Properties.

2.   Under Computer name, domain, and workgroup settings, click Change settings.

3.   On the Computer Name tab, click Change.

4.   In the Computer Name/Domain Changes dialog box, under Member of, click Domain, and then type contoso.com.

5.   Click More, and in the Primary DNS suffix of this computer box, type contoso.com.

6.   Click OK, and then click OK again.

7.   When a Computer Name/Domain Changes dialog box appears prompting you for administrative credentials, provide the credentials for CONTOSO\Administrator, and then click OK.

8.   When a Computer Name/Domain Changes dialog box appears welcoming you to the contoso.com domain, click OK.

9.   When a Computer Name/Domain Changes dialog box appears telling you that the computer must be restarted, click OK, and then click Close.

10.  Click Restart Now.

Next, install the RD Connection Broker role service by using Server Manager.

To install the RD Connection Broker role service
1.   Log on to RDCB-SRV as CONTOSO\Administrator.

2.   Click Start, point to Administrative Tools, and then click Server Manager.

3.   Under the Roles Summary heading, click Add Roles.

4.   On the Before You Begin page, click Next.

5.   On the Select Server Roles page, click the Remote Desktop Services check box, and then click Next.

6.   On the Remote Desktop Services page, click Next.

7.   On the Select Role Services page, select the Remote Desktop Connection Broker check box, and then click Next.

8.   On the Confirm Installation Selections page, click Install.

9.   After the installation is complete, click Close.

Next, configure a digital certificate used to digitally sign the RDP file.

To configure a certificate used to digitally sign the RDP file
1.   Open Remote Desktop Connection Manager. To open Remote Desktop Connection Manager, click Start, point to Administrative Tools, point to Remote Desktop Services, and then click Remote Desktop Connection Manager.

2.   Under the Virtual Desktops: Resources and Configuration heading, click Specify next to Digital Certificate.

3.   On the Digital Signature tab, select the Sign with a Digital Certificate check box.

4.   Click Select.

5.   In the Confirm Certificate dialog box, click the certificate that you want to use for signing the RDP files, and then click OK.

Finally, you must add the thumbprint of the certificate used to digitally sign the RDP file to the Default Domain Group Policy setting. This is required so that the trusted publisher warning dialog box is not shown to the user each time the personal virtual desktop is started.

To add the certificate thumbprint to the Default Domain Group Policy setting
1.   Log on to CONTOSO-DC as CONTOSO\Administrator.

2.   Open Group Policy Management. To open Group Policy Management, click Start, point to Administrative Tools, and then click Group Policy Management.

3.   Expand Forest: contoso.com, expand Domains, and then expand contoso.com.

4.   Right-click Default Domain Policy, and then click Edit.

5.   Navigate to Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Connection Client.

6.   Double-click Specify SHA1 thumbprints of certificates representing trusted .rdp publishers.

7.   Select the Enabled option.

8.   In the Comma-separated list of SHA1 trusted certificate thumbprints box, type the certificate thumbprint used to digitally sign the RDP file, and then click OK.

Configure the RD Web Access server

(RDWA-SRV)

To configure the RD Web Access server by using Windows Server 2008 R2, you must:

  • Install Windows Server 2008 R2.
  • Configure TCP/IP properties.
  • Join RDWA-SRV to the contoso.com domain.
  • Install the RD Web Access role service.

First, install Windows Server 2008 R2 on a stand-alone server.

To install Windows Server 2008 R2
1.   Start your computer by using the Windows Server 2008 R2 product CD.

2.   When prompted for a computer name, type RDWA-SRV.

3.   Follow the rest of the instructions that appear on your screen to finish the installation.

Next, configure TCP/IP properties so that RDWA-SRV has an IPv4 static IP address of 10.0.0.6.

To configure TCP/IP properties
1.   Log on to RDWA-SRV with the RDWA-SRV\Administrator account.

2.   Click Start, click Control Panel, click Network and Internet, click Network and Sharing Center, click Change adapter settings, right-click Local Area Connection, and then click Properties.

3.   On the Networking tab, click Internet Protocol Version 4 (TCP/IPv4), and then click Properties.

4.   Click Use the following IP address. In the IP address box, type 10.0.0.6. In the Subnet mask box, type 255.255.255.0. In the Default gateway box, type 10.0.0.1.

5.   Click Use the following DNS server addresses. In the Preferred DNS server box, type 10.0.0.1.

6.   Click OK, and then close the Local Area Connection Properties dialog box.

Next, join RDWA-SRV to the contoso.com domain.

To join RDWA-SRV to the contoso.com domain
1.   Click Start, right-click Computer, and then click Properties.

2.   Under Computer name, domain, and workgroup settings, click Change settings.

3.   On the Computer Name tab, click Change.

4.   In the Computer Name/Domain Changes dialog box, under Member of, click Domain, and then type contoso.com.

5.   Click More, and in the Primary DNS suffix of this computer box, type contoso.com.

6.   Click OK, and then click OK again.

7.   When a Computer Name/Domain Changes dialog box appears prompting you for administrative credentials, provide the credentials for CONTOSO\Administrator, and then click OK.

8.   When a Computer Name/Domain Changes dialog box appears welcoming you to the contoso.com domain, click OK.

9.   When a Computer Name/Domain Changes dialog box appears telling you that the computer must be restarted, click OK, and then click Close.

10.  Click Restart Now.

Finally, install the RD Web Access role service by using Server Manager.

To install the RD Web Access role service
1.   Log on to RDWA-SRV as CONTOSO\Administrator.

2.   Click Start, point to Administrative Tools, and then click Server Manager.

3.   Under the Roles Summary heading, click Add Roles.

4.   On the Before You Begin page, click Next.

5.   On the Select Server Roles page, select the Remote Desktop Services check box, and then click Next.

6.   On the Remote Desktop Services page, click Next.

7.   On the Select Role Services page, select the Remote Desktop Web Access check box.

8.   Review the information about adding Web Server (IIS) and the Remote Server Administration Tools, click Add Required Role Services, and then click Next.

9.   On the Web Server (IIS) page, click Next.

10.  On the Select Role Services page, click Next.

11.  On the Confirm Installation Selections page, click Install.

12.  After the installation is complete, click Close.

You have set up the Contoso domain. Now you can proceed to Step 2: Installing and Configuring the Virtual Machine

Step 2: Installing and Configuring the

Virtual Machine

In this step, you will install and configure the virtual machine that will be used as a personal virtual desktop.

Use the following table as a reference when setting up the appropriate computer names, operating systems, and network settings that are required to complete the steps in this guide.

 

Computer name Operating system requirement IP settings DNS settings
PVD1-CLNT Windows 7 IP address:

10.0.0.9

Subnet mask:

255.255.255.0

Default gateway:

10.0.0.1

Preferred:

10.0.0.1

 

Install the personal virtual desktop computer (PVD1-CLNT)

To configure the virtual machine that will be used as a personal virtual desktop, you must install Windows 7 on the virtual machine, configure TCP/IP properties, and then join the virtual machine to the contoso.com domain.

To install Windows 7 on a virtual machine
1.   Log on to RDVH-SRV as CONTOSO\Administrator.

2.   Insert the Windows 7 product DVD into the DVD drive on the RDVH-SRV server.

3.   Open Hyper-V Manager. To open Hyper-V Manager, click Start, point to Administrative Tools, and then click Hyper-V Manager.

4.   Right-click RDVH-SRV, point to New, and then click Virtual Machine.

5.   On the Before You Begin page, click Next.

6.   In the Name box, type pvd1-clnt.contoso.com and then click Next.

7.   On the Assign Memory page, click Next.

8.   On the Configure Networking page, in the Connection box, select the virtual network that contains the other machines in the contoso.com domain, and then click Next.

9.   On the Connect Virtual Hard Disk page, in the Name box, type pvd1-clnt.contoso.com, in the Size box, type 30 and then click Next.

10.  On the Installation Options page, click Install an operating system from a boot CD/DVD-ROM drive.

11.  In the Physical CD/DVD drive box, select the DVD drive that contains the Windows 7 product DVD, and then click Next.

12.  On the Completing the New Virtual Machine Wizard page, review the installation options, and then click Finish.

13.  In the Virtual Machines area, right-click pvd1-clnt.contoso.com, and then click Connect.

14.  On the Action menu, click Start to start the installation of Windows 7.

15.  During the installation of the virtual machine, specify pvd1-clnt as the name of the computer.

Next, configure TCP/IP properties so that PVD1-CLNT has a static IP address of 10.0.0.9. In addition, configure the DNS server of CONTOSO-DC (10.0.0.1).

To configure TCP/IP properties
1.   Log on to PVD1-CLNT as a member of the local Administrators group.

2.   Click Start, click Control Panel, click Network and Internet, and then click Network and Sharing Center.

3.   Click Change adapter settings, right-click Local Area Connection, and then click Properties.

4.   On the Networking tab, click Internet Protocol Version 4 (TCP/IPv4), and then click Properties.

5.   Click Use the following IP address. In the IP address box, type 10.0.0.9. In the Subnet mask box, type 255.255.255.0. In the Default gateway box, type 10.0.0.1.

6.   Click Use the following DNS server addresses. In the Preferred DNS server box, type 10.0.0.1.

7.   Click OK, and then close the Local Area Connection Properties dialog box.

Finally, join PVD1-CLNT to the contoso.com domain.

To join PVD1-CLNT to the contoso.com domain
1.   Click Start, right-click Computer, and then click Properties.

2.   Under Computer name, domain, and workgroup settings, click Change settings.

3.   On the Computer Name tab, click Change.

4.   In the Computer Name/Domain Changes dialog box, under Member of, click Domain, and then type contoso.com.

5.   Click More, and in the Primary DNS suffix of this computer box, type contoso.com.

6.   Click OK, and then click OK again.

7.   When a Computer Name/Domain Changes dialog box appears prompting you for administrative credentials, provide the CONTOSO\Administrator credentials, and then click OK.

8.   When a Computer Name/Domain Changes dialog box appears welcoming you to the contoso.com domain, click OK.

9.   When a Computer Name/Domain Changes dialog box appears telling you that the computer must be restarted, click OK, and then click Close.

10.  Click Restart Now.

Configure the virtual machine for Remote Desktop Services

You can configure the virtual machine by using Windows PowerShell. If you prefer to configure the virtual machine manually, see Appendix A: Configuring the Virtual Machine Manually in this document.

The Windows PowerShell script does the following on the virtual machine:

  • Enables Remote Desktop
  • Enables Remote Procedure Call (RPC)
  • Adds selected users to the Remote Desktop Users group
  • Adds the proper RDP-TCP listener permissions for the RD Virtualization Host server
  • Adds a Windows Firewall exception for Remote Desktop Services
  • Adds a Windows Firewall exception for Remote Services Management
  • Restarts the Remote Desktop Services service

The script is found on the Microsoft TechNet Script Center (http://go.microsoft.com/fwlink/?LinkId=184804).

To configure the virtual machine, type the following commands at the Windows PowerShell prompt:

  1. Set-ExecutionPolicy remotesigned –force and then press ENTER.
  2. Configure-VirtualMachine.ps1 –RDVHost contoso\rdvh-srv –RDUsers contoso\mskinner and then press ENTER.

You have installed and configured the virtual machine. Now you can proceed to Step 3: Configuring the Personal Virtual Desktop.

Step 3: Configuring the Personal

Virtual Desktop

In this step, we will configure the personal virtual desktop. To do this, you should do the following:

  • Add RDWA-SRV to the TS Web Access Computers security group on RDCB-SRV.
  • Configure a source on Remote Desktop Web Access (RD Web Access).
  • Configure the personal virtual desktop on the Remote Desktop Connection Broker (RD Connection Broker) server (RDCB-SRV).

First, add the computer account object of the RD Web Access server (RDWA-SRV) to the TS Web Access Computers security group on RDCB-SRV.

To add RDWA-SRV to the TS Web Access Computers group on RDCB-SRV
1.   Log on to RDCB-SRV as CONTOSO\Administrator.

2.   Click Start, point to Administrative Tools, and then click Computer Management.

3.   Expand Local Users and Groups, and then click Groups.

4.   Right-click TS Web Access Computers, and then click Add to Group.

5.   Click Add.

6.   In the Select Users, Computers, Service Accounts, or Groups dialog box, click Object Types.

7.   In the Object Types dialog box, select the Computers check box, and then click OK.

8.   In the Enter the object names to select box, type rdwa-srv and then click OK.

9.   Click OK to close the TS Web Access Computers dialog box.

Next, configure a source on the RD Web Access server (RDWA-SRV).

To configure a source on RDWA-SRV
1.   Log on to RDWA-SRV as CONTOSO\Administrator.

2.   Click Start, point to Administrative Tools, point to Remote Desktop Services, and then click Remote Desktop Web Access Configuration.

3.   Click Continue to this website (not recommended).

Important

This guide uses a self-signed certificate for the RD Web Access server. Self-signed certificates are not recommended in a production environment. You should use a certificate that is trusted from a certification provider when deploying RD Web Access in a production environment.

4.   In the Domain\user name box, type CONTOSO\Administrator.

5.   In the Password box, type the password that you specified for CONTOSO\Administrator, and then click Sign in.

6.   On the Configuration page, click An RD Connection Broker server.

7.   In the Source name box, type rdcb-srv and then click OK.

Finally, configure the personal virtual desktop on the Remote Desktop Connection Broker (RD Connection Broker) server (RDCB-SRV) and assign it to CONTOSO\mskinner.

To configure the personal virtual desktop on RDCB-SRV
1.   Log on to RDCB-SRV as CONTOSO\Administrator.

2.   Click Start, point to Administrative Tools, point to Remote Desktop Services, and then click Remote Desktop Connection Manager.

3.   In the Actions pane, click Configure Virtual Desktops Wizard.

4.   On the Before You Begin page, click Next.

5.   On the Specify an RD Virtualization Host Server page, in the Server name box, type rdvh-srv, click Add, and then click Next.

6.   On the Configure Redirection Settings page, in the Server name box, type rdsh-srv and then click Next.

7.   On the Specify an RD Web Access Server page, click Next.

8.   On the Confirm Changes page, click Apply.

9.   Ensure that the Assign personal virtual desktop check box is selected, and then click Finish.

10.  On the Assign Personal Virtual Desktop page, click Select User.

11.  In the Enter the object name to select box, type contoso\mskinner and then click OK.

12.  In the Virtual machine box, click pvd1-clnt.contoso.com, and then click Next.

13.  Confirm that the User name and Virtual machine boxes are correct, and then click Assign.

14.  Clear the Assign another virtual machine to another user check box, and then click Finish.

You have configured the Personal Virtual Desktop. Now you can proceed to Step 4: Verifying Personal Virtual Desktop Functionality.

Step 4: Verifying Personal Virtual Desktop Functionality

To verify the functionality of the personal virtual desktop deployment, you will log on as Morgan Skinner and connect to the personal virtual desktop by using Remote Desktop Web Access (RD Web Access).

To connect to the personal virtual desktop
1.   Log on to CONTOSO-CLNT as Morgan Skinner (CONTOSO\mskinner).

2.   Click Start, point to All Programs, and then click Internet Explorer.

3.   In the Address bar, type https://rdwa-srv.contoso.com/RDWeb and then press ENTER.

4.   Click Continue to this website (not recommended).

Important

This guide uses a self-signed certificate for the RD Web Access server. Self-signed certificates are not recommended in a production environment. You should use a certificate that is trusted from a certification provider when deploying RD Web Access in a production environment.

5.   In the Domain\user name box, type CONTOSO\mskinner.

6.   In the Password box, type the password that you specified for Morgan Skinner, and then click Sign in.

Note

In you receive a prompt asking you to install the Microsoft Remote Desktop Services Web Access Control, click Run Add-on, and then click Run.

7.   Click My Desktop, and then click Connect.

8.   When prompted, enter the credentials for Morgan Skinner, and then click OK.

You have successfully deployed and demonstrated the functionality of a personal virtual desktop, using the simple scenario of connecting to a personal virtual desktop by using RD Web Access. You can also use this deployment to explore some of the additional capabilities of personal virtual desktops through additional configuration and testing.

You have completed all the steps. For additional information, see Appendix A: Configuring the Virtual Machine Manually.

Appendix A: Configuring the Virtual Machine Manually

Using the Windows PowerShell script mentioned in Step 3 of this guide is recommended. However, the steps can be completed manually by doing the following:

  • Enable Remote Desktop.
  • Add the user accounts that will be using this virtual machine to the local Remote Desktop Users security group.
  • Allow Remote RPC.
  • Create a firewall exception to allow Remote Services Management.
  • Add permissions to the RDP protocol.

First, you must enable Remote Desktop.

To enable Remote Desktop
1.   Log on to PVD1-CLNT as a member of the local Administrators group.

2.   Click Start, right-click Computer, and then click Properties.

3.   Click Remote settings.

4.   Under Remote Desktop, click Allow connections only from computers using Remote Desktop with Network Level Authentication (more secure), and then click OK.

Next, add the user accounts that will be using this virtual machine to the local Remote Desktop Users security group on PVD1-CLNT. In this guide, we will add Morgan Skinner.

To add Morgan Skinner to the local Remote Desktop Users group
1.   Click Start, and then click Control Panel.

2.   Click System and Security, click Administrative Tools, and then double-click Computer Management.

3.   Expand Local Users and Groups, and then click Groups.

4.   Right-click Remote Desktop Users, and then click Add to Group.

5.   Click Add, and in the Select Users, Computers, Service Accounts, or Groups dialog box, type contoso\mskinner and then click OK.

6.   Close the Remote Desktop Users Properties dialog box.

Next, allow Remote RPC on PVD1-CLNT.

To allow Remote RPC for Remote Desktop Services
1.   Log on to PVD1-CLNT as a member of the local Administrators group.

2.   Click Start, and in the Search programs and files box, type regedit.exe and then press ENTER.

Caution

Incorrectly editing the registry may severely damage your system. Before making changes to the registry, you should back up any valued data on the computer.

3.   Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TerminalServer.

4.   Double-click the AllowRemoteRPC registry entry. In the Value data box, type 1 and then click OK.

5.   Close Registry Editor.

Next, enable the Remote Service Management Windows Firewall exception.

To enable the Remote Service Management Windows Firewall exception
1.   Click Start, click Control Panel, and then click System and Security.

2.   Under the Windows Firewall heading, click Allow a program through Windows Firewall.

3.   Select the Remote Service Management check box, and then click OK.

Finally, you must grant the RDVH-SRV computer account permissions to the RDP protocol on PVD1-CLNT and then restart the Remote Desktop Services service on PVD1-CLNT. The RDVH-SRV computer account needs the WINSTATION_QUERY, WINSTATION_LOGOFF, and WINSTATION_DISCONNECT permissions on PVD1-CLNT.

To add RDP protocol permissions to a virtual machine
1.   Click Start, point to All Programs, and then click Accessories.

2.   Right-click Command Prompt, and then click Run as administrator.

3.   If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.

4.   At the command prompt, type the following commands:

·      wmic /node:localhost RDPERMISSIONS where TerminalName=”RDP-Tcp” CALL AddAccount “contoso\rdvh-srv$”,1

·      wmic /node:localhost  RDACCOUNT where “(TerminalName=’RDP-Tcp’ or TerminalName=’Console’) and AccountName=’contoso\\rdvh-srv$'” CALL ModifyPermissions 0,1

·      wmic /node:localhost RDACCOUNT where “(TerminalName=’RDP-Tcp’ or TerminalName=’Console’) and AccountName=’contoso\\rdvh-srv$'” CALL ModifyPermissions 2,1

·      wmic /node:localhost RDACCOUNT where “(TerminalName=’RDP-Tcp’ or TerminalName=’Console’) and AccountName=’contoso\\rdvh-srv$'” CALL ModifyPermissions 9,1

·      Net stop termservice

·      Net start termservice

5.   Log off the PVD1-CLNT computer. This is required in order for Morgan Skinner to log on to the personal virtual desktop successfully.

·                    Related topics