We use FSLogix as profile solution. Control Ups logon duration analyzer shows 15 - 25 seconds at logon at the phase 'load appx packages'. It happens at every logon, not just the first one.
DelayedDesktopSwitchTimeout is set to 0 (also tested 1)
We use Citrix Optimizer
We removed all possible appx packages while staging windows 10 22h2
The cause is probably that the appx packages are stored in the regkey HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\UserSID for each user. Of course, this SID key is missing on non-persistent virtual desktops. Therefore, the AppReadiness service thinks it's the first login by that user and installs the AppX packages each time. But how should it be possible to create this UserSID entry beforehand, since you don't know with which desktop gets assigned to which user with pooled desktops. HKLM for user keys...bad idea.
Does anybody have any helpful tips how I'm able to reduce this time? Is it possible to bypass this appx load package phase?
Disabling the service appreadiness kills the load of appx but that's no solution as you can't open start menu afterwards and a lot more issues.