Affected versions: Windows Server 2016

πŸ“– ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution β€” Primary Fix
  7. Solution β€” Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

RDS host fails to complete updates because active sessions prevent clean restart and commit.

Environment & Reproduction

Occurs when maintenance window begins without draining user sessions.

quser
Get-RDUserSession -ConnectionBroker rdcb01.contoso.local

Root Cause Analysis

Open session processes hold files/registry handles required by servicing commit phase.

Quick Triage

Drain new logons and notify users before update install.

change logon /drain
msg * "Server patching begins in 10 minutes. Save work."

Step-by-Step Diagnosis

Identify blocking sessions and hung apps that survive logoff.

quser
logoff 
Get-WindowsUpdateLog -LogPath C:Tempwu-191.log
Illustrative mockup for windows-server-2016 β€” rds_manager
Session host state before patching β€” Illustrative mockup β€” Progressive Robot

Solution β€” Primary Fix

Drain host, force logoff stale sessions, install updates, then reboot.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Install-WindowsUpdate -AcceptAll -AutoReboot -IgnoreReboot -ErrorAction SilentlyContinue
shutdown /r /t 0
Illustrative mockup for windows-server-2016 β€” terminal_or_powershell
Session drain and reboot workflow β€” Illustrative mockup β€” Progressive Robot

Solution β€” Alternative Approaches

Patch via rolling drain across RDS farm nodes to preserve user capacity.

Get-RDSessionHost -CollectionName AppFarm

Verification & Acceptance Criteria

Host returns to service with expected KB and accepts new sessions.

change logon /enable
Get-HotFix | Select -First 5

Rollback Plan

Remove problematic KB and keep host in drain mode until validated.

wusa /uninstall /kb:XXXXXXX /quiet /promptrestart

Prevention & Hardening

Automate pre-patch session drain, user notifications, and cutoff policy.

schtasks /Create /SC WEEKLY /TN RDSDrain /TR "change logon /drain" /ST 01:00

Related: stuck reboot pending, user profile in use, RDS broker placement issues.

Related tutorial: View the step-by-step tutorial for Windows Server 2016.

View all Windows Server 2016 tutorials on the Tutorials Hub β†’

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

RDS patching patterns and session management guidance for Windows Server.

Need Expert Help?

If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β€” we respond within one business day.