Solution:
Root Cause: AppReadiness Service Deadlock During UWP App Staging
During session logons, the Windows
AppReadiness service (
AppReadiness) enumerates and updates Universal Windows Platform (UWP) apps (such as the Start Menu, Search bar, and Settings panel) for the signing-in user. If the local AppX State Repository database (
StateRepository-Machine.sdb) is corrupted or if an enterprise deployment script restricts the
C:\Program Files\WindowsApps directory permissions, the
AppReadiness service hangs while holding the display initialization thread, trapping the RDP session in a black screen state for 10 to 15 minutes.
Diagnostic Verification:
Open Event Viewer > Windows Logs > System.Look for Event ID 7011 or 7046 from Source Service Control Manager: *'A timeout was reached (30000 milliseconds) while waiting for the AppReadiness service to connect.'*Step-by-Step Fix:
1Restart AppReadiness Service via Task Manager / PowerShell:
Open Task Manager inside the RDP window (Ctrl + Shift + Esc).Go to the Services tab, locate AppReadiness, right-click > Restart.2Change AppReadiness Startup Type to Automatic:
Open PowerShell as Administrator and run: Set-Service -Name AppReadiness -StartupType Automatic
Start-Service -Name AppReadiness
3Reset AppX State Repository (If timeout persists):
Run administrative PowerShell commands: Get-AppxPackage -AllUsers | foreach {Add-AppxPackage -register "$($_.InstallLocation)\appxmanifest.xml" -DisableDevelopmentMode}
4Reconnect to the RDP session.
Prevention & Long-Term Monitoring:
Set the AppReadiness service to Automatic startup on Multi-User Remote Desktop Session Hosts.