π ~1 min read
Table of contents
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

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

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 Errors & Cross-Refs
Related: stuck reboot pending, user profile in use, RDS broker placement issues.
Related tutorial: View the step-by-step tutorial for Windows Server 2012 R2.
View all Windows Server 2012 R2 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.