Friday, June 10, 2011

What new features or improvements would you like to see in the next future release of Microsoft’s Remote Desktop Services platform?

With the latest release of the Remote Desktop Services platform (based on Windows Server 2008 R2) being around for some time now, I thought it would be interesting to brainstorm about what new features or improvements you would like to see in the next future release. Feel free to add your comments and ideas or new features you might like to see. I’ve started this discussion on multiple places (LinkedIn, Twitter etc.). I will try to collect all comments and ideas and merge them into a blog post on my blog at http://microsoftplatform.blogspot.com
I personally believe the following features will be very much appreciated:
1.       Being able to have a full Single Sign On when using the Remote Desktop option in RD WebAccess.As you might now, since Windows Server 2008 R2, RemoteApps that you launch using RD WebAccess have support for a full Single Sign On (SSO). Unfortunately, this does not work for the Remote Desktop option that is in the second tab of the RD WebAccess page. Related to this is the fact that you get the “unknown publisher” warning every time you launch the Remote Desktop from RD WebAccess. For more details on why this happens see one of my recent blog posts here: http://microsoftplatform.blogspot.com/2011/05/rd-webaccess-and-unknown-publisher.html

2.       Support for “Change Password at next logon” on the RD Gateway
When a user’s password is expired or it is manually set to “Change Password at next logon” that user is not able to logon to a RD Session Host server using a .rdp configuration that uses the RD Gateway. Why? The RD Gateway currently cannot handle this. Of course a user will get a “password will in expire in x days prompt”, but users are users, some of them will ignore it, wait as long as possible to change their password or do not even notice it at all. Educating your users to notice this reminder should be done of course, but the RD gateway being able to act on expired passwords would definitely help in my opinion.

3.       Two Factor authentication support on RD Gateway in addition on the RD WebAccess
If you want to secure your Remote Apps using a two factor authentication (2FA) solutions (like i.e. hardware tokens) you can configure this using ISA (or TMG), RD WebAccess and RD Gateway (the last one is optional, but is of course recommended when you publish Remote Apps over the internet). While setting this up, you have to keep the following in mind though: After selecting an application to launch from RD WebAccess, mstsc.exe will be launched under the hood on the client using specific .rdp settings that it receives from RD WebAccess. If your user has knowledge of the address of your RD Gateway server and the address of your RDS farm (or RDSH server) he will be able to actually launch mstsc.exe on his client and by-pass the 2FA! There is a way to deny a direct mstsc.exe session and only allow sessions that where initiated at the RD WebAccess though (see here http://microsoftplatform.blogspot.com/2011/05/force-use-of-rd-webaccess-block-direct.html). However, I think being able to authenticate with 2FA against the RD Gateway itself would be a nice feature. That way you would also be able to use 2FA using just the Remote Desktop Client (RDC). This would however, probably also require a change on the RDC itself.
These are just three things I’ve come across myself, I’m sure there are more! I’m looking forward to your thoughts and ideas on this!

Thanks!
Freek Berson

http://microsoftplatform.blogspot.com

Wednesday, June 1, 2011

New RDS group on Linked-In

Today a started a new group on LinkedIn: Remote Desktop Services.

http://www.linkedin.com/groups/Welcome-new-RDS-group-on-3937792.S.56279658?qid=34e52fe1-706d-4808-97cf-9d2b0057ebd9&goback=.gmp_3937792

In this group I would like to discuss, share knowledge and ideas, share links to interesting articles and blogs about all Microsofts RDS Components. RD Session Host, RD Gateway, RD WebAccess, RD Licensing, RD Easprint, corresponding Group Policies, related folder redirection and roaming profile settings etc.

Feel free to ask questions, start discussions, add content, share knowledge and invite other people!

Friday, May 27, 2011

I’m not using Roaming Profiles, what am I missing?

This question, or something related to it, comes by from time to time. I also see these kinds of questions asked in TechNet forum a lot. So what are you really missing when you’re not using roaming profiles?

Before we get to the bottom of this, let’s get the terminology straight first. Roaming profiles is part of Microsoft’s User State Virtualization (USV). USV is the separation of user settings and data from an end user's personal computer or Remote Desktop Session Host (RDSH).
The term user settings refers to the different kinds of customizations that a user can perform on a Windows operating system. Examples of these user settings are customization to the taskbar, the background but also customization in applications like Microsoft Office. To have these user settings roamed with the user upon logoff, logon and when logging on to a different computer (or RDSH) you can implement roaming profiles.
The term user data refers to the files and folders that a user can maintain on their computer(s). Usually this data is inside well-known folders like My Documents, My Music etc. To have this user data available after logoff, logon and when logging on to a different computer (or RDSH) you can implement folder redirection.

As a side note, when implementing roaming profiles it’s recommended to also implement folder redirection. Why? If you don’t, the user data will be part of the roaming profile and will be copied over from the central profile storage to the client! Not something you would want to happen of course.
The last part of USV is offline files, which I’ll not be discussing further in this blog.  For more information on offline folders see the related links at the end of this blog post.
So let’s focus on the roaming profile. A roaming profile is a collection of folders together with the registry hive HKey Current User (HKCU). As you might know the setting inside HKCU are stored in the NTuser.dat file in the users profile folder and cannot be redirected using folder redirection.
Ok. Now that we got the terminology in order lets back to the original question in this blog. Without Roaming profiles, what settings could you be missing?
Here are some examples of user settings that cannot be centralized without implementing Roaming User Profiles. (note that this list is an example and not exhaustive, there could be more settings)
Setting
Example of a change
Themes
Change the current theme used to customize the desktop background, window colors, sounds and screen saver for
Sounds
Change the sounds that should be planed when various system events occur.
Desktop background
Select a folder containing pictures to be displayed as a slide show on the user's desktop.
Screen saver
Select a screen saver and configure the timeout interval.
Desktop icons
Choose whether icons such as Computer, Network and Recycle Bin should be displayed on the user's desktop.
Mouse pointer
Enable or disable mouse pointer features such as pointer trails and pointer shadow.
Display settings
Change the displayed text size from 100% to 125% to make it easier for the user to read what is displayed on the screen.
Taskbar settings
Configure the taskbar properties to auto-hide the taskbar.
Start menu
Configure the Start menu to not store and display recently opened programs.
Accessibility
Configure Magnifier to invert the colors of the magnified area of the screen.
Regional Options
Change the currency symbol and the long date format.
Keyboard settings
Change the repeat delay and repeat rate when a key is pressed.
Action Center
Turn different types of notification messages on or off in the Action Center
Problem Reporting
Specify whether Windows should check for solutions to problems that are found on the computer
Folder Options
Configure Windows Explorer to open each folder in a separate window, to show hidden files, to use partial matches when searching indexed locations, and other settings configured by selecting Folder Options from the Tools menu.
Windows Explorer
Configure Windows Explorer to display items within a folder using Extra Large Icons.
Libraries
Configure the Documents library to arrange documents by Author. Create a new Library that includes a shared folder on a network file server. (Note: Libraries of this type can also be roamed by enabling Folder Redirection for the AppData(roaming) folder.)
Internet Options
Change the home page, disable tabbed browsing, change the security level for the Intranet Zone, and make other changes using the Internet Options Control Panel.
Windows Media Player
Configure how often Windows Media Player checks for updates, specify privacy settings, configure Media Library settings, and make other changes to Windows Media Player by selecting Options from the Tools menu.
Printers
Add a printer connection to a network printer published in Active Directory.
Network connections
Set up a Virtual Private Networking (VPN) connection to a VPN server on a remote network.
Mapped drives
Map a drive letter to a shared folder on a network file server.
Command prompt
Change the buffer size in the command prompt properties.


Some examples of Microsoft Office settings that cannot be centralized without implementing Roaming User Profiles.
Instelling
Voorbeeld wijziging
Ribbon
Minimize the ribbon.
Quick Access Toolbar
Position the Quick Access Toolbar above or below the Ribbon.
Word Options
Enable Live Preview, show formatting marks for Tab characters, specify the language for a custom dictionary, ignore UPPERCASE words when spell-checking, personalize your copy of Office with your username and initials, specify autosave settings, or configure other Office personalization settings by configuring Word Options, PowerPoint Options, or another Office application's Options dialog.


And an example 3rd party application (Adobe Acrobat Reader). These settings that cannot be centralized without implementing Roaming User Profiles.
Instelling
Voorbeeld wijziging
Toolbars
Display or hide the Edit toolbar.
Preferences
Specify the default page layout and zoom level, configure how often open documents should be saved to a temporary file, change the underline color for spell checking, and configure other settings by selecting Preferences from the Edit menu.

This document also describes thoroughly all the things you need to consider before choosing the User State Virtualization that suits your environment best. The question “Which USV combination is best?” can, as all IT question, be answered with “it depends”. It depends on end-user requirements and IT requirements. So, if in doubt about what USV options to choose, this document provides an excellent guide.
One last option I would like to discuss. New to Window 7 and Windows Server 2008 R2 is the option called “Background upload of a roaming user profile's registry file while the user is logged on”. This is a GPO setting that can actually be used to upload settings inside the HKCU without a logoff. This can be very useful because without this setting the HKCU is only uploaded to the central storage at logoff. A  scenario where this policy provides benefits is when an organization has users who work remotely from their laptops. Users who hibernate their laptop off can still have their user settings uploaded to the profile server. Another possible benefit with this is that the settings inside the HKCU can be roamed when logging into other machines or devices without having to logoff on the device where the settings were changed!  The policy can be found here:

Additional information:
http://technet.microsoft.com/en-us/windows/ff629664
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=fd01ed7a-c603-4f7c-8a60-8e4872b58bdf
http://technet.microsoft.com/en-us/library/ff877478.aspx
http://go.microsoft.com/fwlink/?LinkId=200543

Wednesday, May 18, 2011

Optimize my experience for a LAN network when connecting to the computer or application.

If you have upgraded your Windows Server 2008 R2 RD WebAccess server to Service Pack 1 (SP1) and open up the RD WebAccess page after that, you’ll notice a very small change on the RemoteApp Programs page. Suddenly there now is an option called “Optimize my experience for a LAN network when connecting to the computer or application”.

So what does that option do? A quick search on Bing only shows one result. A search with some other search engine (that starts with a G) doesn’t show more either.
So why is this option suddenly there and what does it do?

During the installation of SP1, the web.config file inside c:\windows\web\rdweb\pages is also being updated. The following lines have been added:

<add key="ShowOptimizeExperience" value="true" />
<add key="OptimizeExperienceState" value="true" />
You can use ShowOptimizeExperience to either show the option in RD WebAccess or not and you can use OptimizeExperienceState to force it being on or off.
So what is it used for? RemoteFX!

As RemoteFX is optimized for LAN connections, users must request a LAN connection to actually experience RemoteFX. That’s what the option is there for. It’s basically the same as custom RDP setting “connection type:i:6”.

Monday, May 9, 2011

Force the use of RD WebAccess (block direct mstsc.exe connections)

Consider the following scenario:
You have one or more RD Session Host servers running on which you installed and configured applications and settings. You want to publish this full desktop using a full desktop to your end-users using RD WebAccess and via RD WebAccess only.
When you publish the full desktop via RD WebAccess (whether it’s via a RD Gateway or not). Users will be able to directly contact the RD Session Host (or via RD Gateway) using their local Remote Desktop Client (mstsc.exe). Why? Because RD WebAccess does nothing more than provide you with the rdp-settings to use after you have authenticated. When you start a full desktop session via RD WebAccess mstsc.exe is launched under the hood. Therefore, when you have knowledge of the name of the RDS farm (and the FQDN of the RD Gateway) you will be able to bypass the RD Webaccess and just launch mstsc.exe
Remember that there is difference between in the way the .rdp is built when launching a RemoteApp or a full desktop. (see here: http://microsoftplatform.blogspot.com/2011/05/rd-webaccess-and-unknown-publisher.html )
Microsoft states this scenario as “expected behavior”. And, there right about that of course. Access is possible because of the way RD WebAccess works. (RD WebAccess is not some form of proxy). In some scenario’s the ability to access the environment could in fact be thought of as a form of workaround when the RD WebAccess temporarily unavailable.
There are multiple scenarios however, in which being able to connect directly is not the desired functionality.
For example, when you have made heavy customizations on your RD WebAccess page and want to inform users with news of updates on the availability of your environment using this page you would want to have your users to actually go through the RD WebAccess page to take note of those updates.
Another scenario is where you have setup a form of Two Factor Authentication (2FA) on your RD WebAccess page and want your users to always use this 2FA. By having them access the environment without accessing the RD WebAccess they can actually bypass the 2FA.
A solution for this scenario can be achieved by making use of ISA (or TMG). My colleague explains the way we successfully set this up thoroughly in a blog post here: http://www.forefrontblog.nl/2011/05/06/publishing-rds-web-rsa-and-preventing-direct-logon/
You can find a detailed configuration in the blog post above but basically what you do is you create two rules in ISA that use the same HTTP listener. The first rule will have the destination of the RD WebAccess server; the second rule will have the destination of the RD Gateway server. By doing so (based on cookie authentication) you will only be able to access the RD Gateway (and thus the RDS farm) by making first authenticating on the RD Webaccess rule (on which you could configure your 2FA as well). This will force users to always use RD WebAccess.
Small note:
A change in a .aspx file that RD Webaccess uses is also necessary, for RD WebAccess based on Windows Server 2008 R2 the change should  be:
RDPstr += "pre-authentication server address: s: https://<RDWebAccess FQDN>/rdweb\n";
RDPstr += "require pre-authentication:i:1\n";
RDPstr += "";
And note that the cookie is authorized for 10 minutes by default. This value can be changed in ISA, but during testing make sure that you delete your browsers cookies before testing the inability of directly connecting using mstce.exe

Friday, May 6, 2011

Hotfix KB2522743: Calendar control in RemoteApp

Microsoft released a new hotfix today regarding using a calender control in a RemoteApp. In this scenario, the calendar control opens for a split second and then closes automatically. Therefore, you cannot use the calendar control.

Article ID: 2522743 - Last Review: May 6, 2011 - Revision: 2.0
You cannot use a calendar control in a RemoteApp application when you use the RDC 7.0 client to connect to the RemoteApp application from a computer that is running Windows 7 or Windows Server 2008 R2
http://support.microsoft.com/kb/2522743/en-us?sd=rss&spid=14134

Thursday, May 5, 2011

RD WebAccess and the "unknown publisher story"

Anyone who had worked with RD WebAccess will have seen the following error one time or another:
The question: can we configure RD WebAccess to sign the .RDP that is used so that this warning does not pop-up on our end-users computers?
The answer: The answer is, as with all IT-questions, it depends!

And here’s why: There are two ways to have users access your RD Session Host farm from RD WebAccess. The first one is by making use of RemoteApp. RemoteApp is the technique on the RD Session Host that is used to deliver seamless applications to your end-users that “blend in” with the users locally installed applications. You can use RD WebAccess to publish these RemoteApps via a webpage. In the example below I have published Calculator and WordPad to be available via RD Web Access.

 In the RemoteApp configuration on the RD Session Host we can actually configure the SSL certificate that is used to sign the “.rdp file” that is used to run the RemoteApp.
 That’s great! Now we have a publisher available and a user can check that he trusts the publisher. (Or we can use a GPO that automatically trusts all RDP connections that were signed using a specific SSL certificate, by making use of the hash of the SSL certificate).
 Now comes the catch, the second method is making use of the option Remote Desktop tab in RD Web Access. This way you can publish a full desktop instead of a RemoteApp.

Can we sign the .RDP that is used for this connection as well to get rid of the publisher warning?
No, we can’t.
The reason for this is that is that there’s a difference in how the .RDP file is built when using Remote App RD Web Access and when using Remote Desktop via RD Web Access.
When you connect to a RemoteApp, a .RDP file is created on the RD Session Host based on the settings that we configured in the Remote App Manager. Remember that we specified a SSL certificate there. So the .RDP file will be signed here before its being channeled to the client from where it is executed.
When you connect to a Remote Desktop, the .RDP file is actually created on the client itself based on parameters that it gets from the RD Web Access (which reside in the web.config and aspx pages) plus the settings that might have been done in the Remote Desktop page by the user. The client does not sign the .RDP file, and thus, you still get the warning about the unknown publisher!