Microsoft
Windows Server
2008
R2
Remote
Desktop
Services
Resource Kit
Christa Anderson and
Kristin
L.
Griffin
Contents
Acknowledgments
xvIntroduction xvii
Chapter
1
Introducing
RemoteDesktop
Services1
WhereDidRDS ComeFrom? 2 CitrixMultiWin 2
Windows NT, Terminal Server Edition 2
Windows2000 Server 3
WindowsServer2003 3 Windows Server 2008 4 WindowsServer2008 R2 and RDS 4
The
Evolving
Remote ClientAccessExperience
6WhatCan You Do withRDS? 7
Improved Security
forRemoteUsers 8Provisioning
NewUsersRapidly
9Enabling
RemoteWork 9Bringing
WindowstoPC-Unfriendly
Environments 10Business
Continuity
and DisasterRecovery
11Supporting
GreenComputing
11Improved
Command-LineSupport
12 RDS forWindows Server2008R2: NewFeatures 12 TheChanging
Characterof RD Session HostUsage
13 New RDSTechnology
inWindowsServer 2008 R2 19 RDS Roles inWindowsServer 2008 R2 24 HowOtherServicesSupport
RDS 32TheClientConnection 33
Hosting
VMs 34Authenticating
ServerswithCertificates 34Enabling
WANAccessandDisplaying
Remote Resources 34Updating
UserandComputer Settings
35Functionality
for RDSScripters
andDevelopers
35Summary
35Additional Resources
36
What doyouthink of this
book?
We wantto hear fromyou!
Microsoft is interestedinhearingyourfeedbacksowe can
continually
improveourbooksandlearningresourcesforyou. Toparticipateinabriefonlinesurvey,pleasevisit:
microsoft.com/learning/booksurvey
Chapter
2Key
Architectural
Concepts
for Remote
Desktop
Services
39
Know Your
Application Delivery System
40 RD Session Host Servers 40 RD Virtualization Host Servers 40 Relevant Windows Server 2008 R2 Internals 41 Windows Server 2008 R2 Is 64-BitOnly
41How DoesanRD Session Host Server Dole Out Processor
Cycles?
43HowDo RD Session Host Servers Use
Memory
MoreEfficiently?
45How Does Disk Affect
Application Delivery?
56 How DoesVirtualization Affect ResourceUsage?
59Determining System Requirements
for RDSession HostServers 66Designing
aLive Test 69Executing
theTests 70Using
theRDLoad Simulation Tool 77 An Alternative toFullTesting:
Extrapolation
91 OtherSizing
Questions 95Supporting
Client Use Profiles 99Client Hardware: PCorThin Client? 99
What's the Best License Model? 100 What
Applications
Can I RunonanRD Session Host Server? 101What Version of Remote
Desktop
Connection Do I Need? 109 What Role Services Do I NeedtoSupport My
Business? 114Summary
114Additional Resources 115
Chapter
3Deploying
aSingle
RemoteDesktop
Session Host Server 117How RD Session Host ServersWork 117
Services Supporting RDSession Host 117
Creating
andSupporting
aSession 119Installing
anRD Session Host Server 134Installing
anRD Session Host ServerUsing theAdministrativeTools Interface 134
Installing
anRD Session Host Server from the Command Line 142Essential RD Session Host
Configuration
144Allocating
Processor Time 145Enabling
Plug
andPlay
Redirection with theDesktop Experience
150Adjusting
ServerSettings
with RemoteDesktop Configuration
150Installing Applications
on an RD Session Host Server 164Which
Applications
Will Work? 165Storing Application-Specific
Data 168Avoiding Overwriting
User ProfileData 170Populating
the Shadow Key 171Summary
174 Additional Resources 174Chapter
4Deploying
aSingle
Remote
Desktop
Visualization
HostServer 175
WhatlsVDI? 175
How MicrosoftVDIWorks 178 TheCentral RoleoftheRD ConnectionBroker 179
Discovering
aVM 181Brokering
aConnection 182Orchestrating
aVM 184Connecting
toaVMPool 185Connecting
toaDisconnectedSession 186Rolling
BackaVM 186Connecting
toaPersonalDesktop
187Installing
Supporting
Rolesfor VDI 188Installing
theRDVisualizationHost 190Installing
RD Virilization Host Role Service via WindowsPowerShell 192Installing
RD Connection Broker 193Configuring
RD Web Access 195Configuring
the RD Connection Broker Server 197Setting Up
VMs 203Creating
Pools 209Assigning
PersonalDesktops
212Configuring
Personal and Pooled VMProperties
216Using RemoteApp
forHyper-V
forApplication
Compatibility
218Configuring RemoteApp
onHyper-V
220Can YouUse
RemoteApp
forHyper-V
WithoutRDS? 222Summary 224
Additional Resources 224
Chapter
5Managing
User Data
inaRemote
Desktop
Services
Deployment
225How Profiles Work 226
Types
of Profiles 227How Profiles Are Created 228 Profile Contents External tothe
Registry
233Storing
Profiles 239Providing
aConsistent Environment 241Design Guidelinesfor User Profiles 242 Balance
Flexibility
and Lockdown 243Use FolderRedirection 244
Compartmentalize
WhenNecessary
244Prevent Usersfrom
Losing
FilesontheDesktop
245Upload
ProfileRegistry Settings
in theBackground
246Speed Up Logons 246
Deploying
Roaming Profiles with RemoteDesktop
Services 248Creating
a NewRoaming
Profile 248ConvertinganExisting Local Profiletoa
Roaming
Profile 254Customizing
a Default Profile 255Using Group Policy
toManage Roaming
Profiles 257Using Group Policy
to DefinetheRoaming
Profile Share 267Speeding Up Logons
268Centralizing
PersonalDatawith Folder Redirection 275Sharing
Personal Folders Between Local and Remote Environments 278Sharing
Folders Between Windows Server 2003 and Windows Server 2008R2
Roaming
Profiles 279Setting
Standards withMandatory
Profiles 281Converting Existing Roaming
ProfilestoMandatory
Profiles 283Creating
aSingle Mandatory
Profile 284Creating
aSafeRead-Only Desktop
286Decrease
Logon
Times with LocalMandatory
Profiles 286 Profile and Folder RedirectionTroubleshooting Tips
287Summary 288
AdditionalResources 289
CHAPTER 6
Customizing
the User
Experience
291
How
Remoting
Works 291WhatDefinesthe Remote ClientExperience? 293 The FoundationofRDP: VirtualChannelsand PDUs 296 Basic
Graphics Remoting
299Advanced
Graphics Remoting
305Moving
the ClientExperience
tothe Remote Session 307 Which Client Devices Can You Addtothe Remote Session? 307 Pros and Cons ofRedirecting
Resources 313 Device and FileSystem
Redirection 314Playing
Audio 326How the RDC Version Affects the User
Experience—or
Doesn't 330Printing
with RDP 334Printing
toaDirectly
Connected Printer 335Printing
viaRedirected Printers 337Printing
from RemoteDesktop
Services 344WhenYou Cannot Use RDEasy Print 350
Controlling
Printer Redirection 354Troubleshooting Printing
Issues 358Summary 359
AdditionalResources 360
Chapter
7Molding
and
Securing
the
User Environment 363Locking
Down the Server 364Restricting
Device andResource Redirection 365Preventing
UsersfromReconfiguring
the Server 367Preventing
Access totheRegistry
368Closing
Back DoorsonRD Session Host Servers 369Controlling
Libraries 375Preventing
Users fromRunning
UnwantedApplications
376Using
SoftwareRestriction Policies 378Using
AppLocker
381Creating
aRead-Only
Start Menu 391Keeping
the RD Session Host Server Available 393Allowing
orDenying
Accesstothe RDSession Host Server 393Limiting
theNumber of RD Session Host ServerConnections 393Setting
Session Time Limits 394Taking
Remote Control of User Sessions 394Summary
398AdditionalResources 398
Chapter
8
Securing
RemoteDesktop
ProtocolConnections
401
Core
Security Technologies
402Transport Layer Security
402Credential
Security
ServiceProvider 405Using
RDPEncryption
409Understanding Encryption Settings
409Choosing
Encryption Settings
410Authenticating
ServerIdentity (Server Authentication)
410Establishing
aKerberos FarmIdentity
411'
Creating
Test Certificates foraServer Farm 411Authenticating
ClientIdentity
withNetwork LevelAuthentication(NLA) 415Speeding Logons
withSingle Sign-on
. 416
Configuring
theSecurity Settings
ontheRDSession Host Server 417Configuring
ConnectionSecurity Using
RD Session HostConfiguration
417Configuring
ConnectionSecurity Using Group
Policy
419Summary
420Additional Resources 421
Chapter
9
Multi-Server
Deployments
423Key Concepts
forMulti-ServerDeployments
423RD Session Host Farms 424
RemoteApp
Internals 424Server-Side
Components
426 Client-SideComponents
427RemoteApp Programs
andMultiple
Monitors 428Creating
andDeploying
aFarm 431Distributing
Initial FarmConnections432
Connection
Brokering
inaFarmScenario 433 RDS FarmConnectionBrokering
in Action 434Deploying
RDSessionHostFarms 439PermitRD Session Host ServerstoJoin RDConnection Broker 440
JoinRD Session Host Serverstoa Farm 447
Publishing
andAssigning
Applications
Using RemoteApp Manager
454Adding
Applications
to theAllowList 455Configuring
GlobalRemoteApp Deployment
Settings
457Editing RemoteApp
Properties
464Maintaining
AllowListConsistency
Acrossthe Farm 469Configuring
TimeoutsforRemoteApp
Sessions471
Signing
Already-Created
RDP Files 472Setting Signature
Policies474
Distributing RemoteApp
Programs
475Distributing
RDP Files475
Distributing
MSI Files476
Delivering RemoteApp
Programs
and VMsThrough
RD Web Access478
RD WebAccess Sources
478
Installing
theRD WebAccessRoleService 481Configuring
RD Web Access 482Customizing
RD WebAccess 488Troubleshooting
RDWebAccess Permissions 496Using
the RDWebAccess Website497
Using RemoteApp
AndDesktop
Connections 502Summary
505
AdditionalResources
506
Chapter
10
Making
RemoteDesktop
Services Available
from
the Internet
507
How RD
Gateway
Works507
Understanding
RDGateway
AuthorizationPolicies509 RD
Gateway Requirements
510
Installing
RDGateway
512
Installing
RDGateway
Using WindowsPowerShell515
Creating
andMaintaining
RDGateway
Authorization Policies 515Creating
anRDCAP 516Creating
an RDRAP 519Modifying
anExisting
AuthorizationPolicy
521Configuring
RDGateway
Options 521Tuning
RDGateway Properties
522
Using
RDGateway
Computer
Groups
toEnableAccess toaServer Farm 530
Bypassing
RDGateway
forInternal Connections533
Using Group Policy
to ControlRDGateway
AuthenticationSettings
533Monitoring
andManaging
Active RDGateway
Connections 534Creating
aRedundantRDGateway Configuration
537Using
NLB toLoad-BalanceRDGateway
Servers 537Preventing Split
SSL ConnectionsonRDGateway
542Maintaining
IdenticalSettings
AcrossanRDGateway
Farm 543Using
NAP with RDGateway
554Troubleshooting
DeclinedConnections 573Placing
RDWebAccess and RDGateway
576RDWeb Access for ExternalAccess 576
RD
Gateway
Inside thePrivateNetwork 578 RDGateway
in thePerimeterNetwork 579 RDGateway
in the Internal Network andBridged
581Summary
586AdditionalResources 586
Chapter
11
Managing
RemoteDesktop
Sessions
589Introducing
RD Session HostManagement
Tools 590 The RemoteDesktop
ServicesManager
591 Command-LineTools 595Connecting Remotely
to Servers for AdministrativePurposes
598Managing
RDSessionHost ServersfromWindows 7 599Organizing
ServersandVMsin theRemoteDesktop
ServicesManager
600Monitoring
andTerminating
Processes 602Monitoring
Application
Use 603Terminating Applications
604Monitoring
andEnding
User Sessions 605Switching
Between Sessions 606Closing Orphaned
Sessions 608Providing Help
with Remote Control 610Enabling
Remote Control viaGroup Policy
612Enabling
Remote Control via RD Session HostConfiguration
614Shadowing
aUser Session 615Troubleshooting
SessionShadowing
617Preparing
for Server Maintenance 619Disabling
NewLogons
619Sending Messages
toUsers 621Shutting
DownandRestarting
RDSession HostServers 624Applying
RDSManagement
Tools 631Differentiating
RemoteApp Sessions from FullDesktop
Sessions 631Auditing Application
Usage 633Auditing
User Logons 639Closing Unresponsive Applications
640Summary 641
Additional Resources 642
Chapter
12
Licensing
RemoteDesktop
Services643
The RDS
Licensing
Model 644RDS
Licensing
644VDI
Licensing
646License
Tracking
andEnforcement 648HowRD License ServersAssignRDSCALs 648
Setting Upthe RDS
Licensing
Infrastructure 651Installing
RD License Server 652RDLicense ServerConnection Methods 653
Activating
the License Server 653Background:
How RDS CALs AreTiedto an RD License Server 657Adding
LicenseServers to AD DS 660Installing
RDS CALs 660Configuring
RD Session Host Servers to Use RD License Servers 662Configuring
RD License Servers toAllow Communication FromRDSessionHost Servers 663
Migrating
RDSCALs fromOne License Server toAnother 663Rebuilding
the RDLicenseServer Database 665Backing Up
anRDLicense ServerandCreating
Redundancy
665Managing
andReporting
LicenseUsage
667Revoking
RDS CALs 670RestrictingAccess to RDS CALs 671
Preventing
LicenseUpgrades
673Using
theLicensing
Diagnosis
Tool 673Summary
675Additional Resources 675
Index 677
books andlearningresources foryou.Toparticipateinabrief onlinesurvey,
please
visit: What do youthink of
this book? Wewant to hear fromyou!
Microsoft is interested inhearingyour feedbackso we can
continually
improveourbooks andlearningresources foryou.Toparticipateinabrief onlinesurvey,