How to Install the Remote Desktop Session Host Role
Applies to: Windows Server 2019, 2022 and 2025.
RD Session Host runs multi-user desktop and RemoteApp sessions. Role installation must be followed by a supported RDS deployment, licensing configuration, collection design and application testing.
RDS deployments require Windows Server licensing, the correct RDS CAL model and secure access design. Administrative RDP sessions are not a replacement. Review managed RDS hosting at managed Windows VPS hosting.
Prerequisites
- Join the server to the domain when using a standard RDS deployment.
- Confirm application support for multi-user Windows Server.
- Plan licensing, profiles and secure access.
- Take a backup and schedule restart.
Procedure
Step 1: Inspect role state
Query RDS features.
Get-WindowsFeature RDS-*Step 2: Install Session Host
Add the role and management tools.
Install-WindowsFeature RDS-RD-Server -IncludeManagementToolsStep 3: Restart
Reboot during maintenance.
Restart-ComputerStep 4: Create or join an RDS deployment
Use Server Manager Remote Desktop Services deployment workflow or approved RDS cmdlets.
Step 5: Configure licensing and collection
Do not leave the server relying on the grace period.
Verification
Confirm the role is installed and TermService is running.
Get-WindowsFeature RDS-RD-Server
Get-Service TermServiceRollback
Remove the server from collections, drain sessions and use Uninstall-WindowsFeature RDS-RD-Server only after applications and users have migrated.
Licensing and security notes
End-user use requires eligible RDS CALs in addition to Windows Server and application licences.
Official references
For a hosted environment with setup and onboarding, explore our managed Windows VPS plans.
How to Install and Activate an RDS Licensing Server
How to Install and Activate an RDS Licensing ServerApplies to: Windows Server 2019, 2022 and 2025.RD Licensing stores and issues eligible…
How to Configure RDS Licensing Mode and License Server with Group Policy
How to Configure RDS Licensing Mode and License Server with Group PolicyApplies to: Windows Server 2019, 2022 and 2025.Session Hosts need…
How to Create an RDS Session Collection with PowerShell
How to Create an RDS Session Collection with PowerShellApplies to: Windows Server 2019, 2022 and 2025.A session collection groups Session…
How to Publish a Windows Application as RemoteApp
How to Publish a Windows Application as RemoteAppApplies to: Windows Server 2019, 2022 and 2025.RemoteApp presents an approved program…
Preparing a dependable Remote Desktop licensing service
Prepare an RD Licensing service with the appropriate supported version, activation and licence pack. Connect Session Hosts through the…