What is Remote Desktop Services?

Remote Desktop Services, formerly Terminal Services, is a server role in Windows Server® 2008 R2 that provides technologies that enable users to access Windows-based programs that are installed on a Remote Desktop Session Host (RD Session Host) server, or to access the full Windows desktop. With Remote Desktop Services, users can access an RD Session Host server from within a corporate network or from the Internet.

Remote Desktop Services lets you efficiently deploy and maintain software in an enterprise environment. You can easily deploy programs from a central location. Because you install the programs on the RD Session Host server and not on the client computer, programs are easier to upgrade and to maintain.

When a user accesses a program on an RD Session Host server, the program runs on the server. Each user sees only their individual session. The session is managed transparently by the server operating system and is independent of any other client session. Additionally, you can configure Remote Desktop Services to use Hyper-V™ to either assign virtual machines to users or have Remote Desktop Services dynamically assign an available virtual machine to a user upon connection.

For more information about Remote Desktop Services, see the Remote Desktop Services page on the Windows Server 2008 R2 TechCenter (http://go.microsoft.com/fwlink/?LinkId=138055).

Why use Remote Desktop Services?

If you deploy a program on an RD Session Host server instead of on each device, there are many benefits. These include the following:

  • Application deployment: You can quickly deploy Windows-based programs to computing devices across an enterprise. Remote Desktop Services is especially useful when you have programs that are frequently updated, infrequently used, or difficult to manage.
  • Application consolidation: Programs are installed and run from an RD Session Host server, eliminating the need for updating programs on client computers. This also reduces the amount of network bandwidth that is required to access programs.
  • Remote access: Users can access programs that are running on an RD Session Host server from devices such as home computers, kiosks, low-powered hardware, and operating systems other than Windows.
  • Branch office access: Remote Desktop Services provides better program performance for branch office workers who need access to centralized data stores. Data-intensive programs sometimes do not have client/server protocols that are optimized for low-speed connections. Programs of this kind frequently perform better over a Remote Desktop Services connection than over a typical wide area network.

Integration of Remote Desktop Services with SharePoint Server 2010

Integration of these 2 technologies opens up great avenues for consolidation. The Remote Desktop Web Access server role can be taken over by the already present SharePoint Server 2010 in the environment. This provides the possibility such as:

  • Single Website: As the SharePoint website is already present; this can be leveraged to publish the RemoteApps that are hosted on the Remote Desktop Session Host server. This reduces the URLs that the end user has to remember to access company data and applications.
  • Customization: The SharePoint Website, unlike the Remote Desktop Web Access default web portal, can be customized as per company needs. This gives the company freedom to brand, color code, provide additional links or shortcuts as required.
  • Accessing content through RemoteApps: If the content in SharePoint needs a particular RemoteApp to run, you can make a connection to the RemoteApp and then open the doc in it. This gives you the capability of accessing this data over the internet as well, without having to worry about security.


Logn on the Host server and go to Server Manager -> Roles -> Add Roles.

This will take you to the Add Roles Wizard. Please Select Remote Desktop Services .


Select then Remote Desktop Session Host and click Next


Just click Next


Select Require Network Level Authentication. Click Next.


Select the appropriate licensing scheme. Click Next. In my case "Configure Later"


Select the appropriate users you want to give access to the Remote Desktop Service Host server. Click Next.

In my case I added the administrators and the Domain Users


Select any of the features that you want to include in the Desktop Experience. Click Next.

For test, I will chose any of these.


Click install and reboot server.


Afther rebooting Server, again on Remote Desktop Services, add a new Service Role, Remote Desktop Web Access


click Next, note that my server name is srv-app-01

On the SharePoint Server ( srv-app-01 ) go to the webapplication that you want to use, and edit the Web.Config

Go to %SystemDrive%:\inetpub\wwwroot\VirtualDirectories\


In the <SafeControls> section, add the following line under the other SafeControl Assembly entries (as a single line):

<SafeControl Assembly="TSPortalWebPart, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="Microsoft.TerminalServices.Publishing.Portal" TypeName="*" Safe="True" AllowRemoteDesigner="True" />


Open an elevated command prompt. To do this, click Start, right-click Command Prompt, and then click Run as administrator:


· Type mkdir "%SystemDrive%\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\TSPortalWebPart\\images" and then press ENTER.
· Type mkdir "%SystemDrive%\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\TSPortalWebPart\\rdp" and then press ENTER.
· Type cacls "%SystemDrive%\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\TSPortalWebPart\\images” /T /E /P NetworkService:F and then press ENTER.
· Type cacls "%SystemDrive%\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\TSPortalWebPart\\rdp” /T /E /P NetworkService:F and then press ENTER.





Go then to your SharePoint site and in the upper-right corner, on the Site Actions tab, click Site Settings.

Under Galleries, click Web Parts.

Add ne New Element ..


Select the Webpart Microsoft.TerminalServices.Publishing.Portal.TSPortalWebPart and click then on Populate Gallery


Edit then your Page and add, the new WebPart TSPortalWebpart


Now, we are going to test it.

When I open my RemoteApp Manager, and connect to srv-sql-01, you can see that I have one Remote Application "calc.exe"


On your SharePoint Page modify it, to have a link to Calc.exe


When you click on it, it will open a warning screen.

Watch good, it tries to connect to SRV-SQL-01 and I am on SRV-APP-01


Provide your Credentials


And the calculator of SRV-SQL-01 opens now on the SharePoint Server ..