T The Triage ManualTechnical Guides for IT Emergencies
P2 · Endpoint & Device Management

AppX Package Staging Deadlock Causes Login Delays and Temporary Profile Assignment on Shared Workstations and RDS

New users logging into shared workstations or RDS sessions on Windows 10/11 Enterprise experience login delays exceeding 5 minutes or are placed into temporary profiles because the User Profile Service deadlocks while staging default provisioned AppX applications. Background AppX optimization runs hold locks that block profile creation. Resolution requires de-provisioning unnecessary default AppX packages from the base system image using Remove-AppxProvisionedPackage before fleet deployment.

Indicators

Likely causes

Diagnostic steps

  1. Open Event Viewer and navigate to Windows Logs > Application. Filter for Source 'User Profile Service' and look for Event ID 1509 and Event ID 1511. Note the verbatim message text, timestamps, and any referenced file paths or user SIDs.
    Confirms the User Profile Service is the blocking component and identifies the specific file deployment permission issue or timeout causing the deadlock during AppX staging.
  2. Reproduce the issue by logging in as a brand-new user account that has never logged into the affected machine. Time the login duration with a stopwatch and observe whether the user lands in their own profile or a temporary profile (check via System Properties > User Profiles or echo %USERPROFILE%).
    Validates the symptom is reproducible and scoped to new-user first-login profile creation, distinguishing from roaming profile sync issues or GPO processing delays.
  3. Run: Get-AppxProvisionedPackage -Online | Select-Object DisplayName, PackageName. Review the output to identify unnecessary default built-in app packages that should not be present on a shared or enterprise workstation image.
    Identifies provisioned AppX packages present in the system image that the User Profile Service must stage on each new user first-login, revealing candidates for de-provisioning to reduce lock contention.
  4. While a new user login is in progress (or immediately after a failed/delayed login), check Task Manager or Process Explorer for the UserProfileService (svchost.exe hosting ProfSvc) and AppX-related processes (AppXSvc, TiledDataLayer). Observe if any are in a wait or deadlocked state consuming elevated CPU or blocking on I/O.
    Provides real-time confirmation of the deadlock condition — the User Profile Service being blocked by AppX background optimization locks during new profile creation.
  5. Test new user first-login on two or more shared workstations or RDS session hosts. If only some machines are affected, compare their provisioned AppX package lists using Get-AppxProvisionedPackage -Online to identify differences.
    Determines whether the issue is systemic to the fleet image (requiring image remediation) or isolated to specific machines (requiring per-machine de-provisioning as interim fix).

Resolution path

Prevention

Tools

References

Windows 10Windows 11RDSAppXUser Profile ServiceProfile CreationDeadlockHot-deskingLogin DelayTemporary ProfileProvisioned PackagesImage ManagementEvent ID 1509Event ID 1511L2L3