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 networkmanager.info.
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.