Problem:
When desktop is deleted and user logs back in to the desktop the MS store apps which were installed by the user in previous session are missing.
Symptoms:
No custom user MS Store Apps are saved between non-persistent sessions.
Possible Resolution(s):
1) Verify that ProfileDisk is part of the ProfileUnity configuration. If no ProfieDisk in use
a) Create "Virtual Disk" Rule:
- Mount Location: Mount to Path
- Mount to Path: %localappdata%\Packages
- Storage Type: Microsoft VHDX Image
- Virtual Disk Path: \\Server\Share\%username%\VHDs\packages.vhdx
- Size (GB): 10
- No Compression
- Type: Expandable
b) Create "ModernApps Classes" Portability Ruleset (Portability Management) to save following registry:
Registry Rules:
Merge Tree HKCU SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion
Merge Tree HKCU Software\Classes\ActivatableClasses\Package
Merge Tree HKCU Classes\Extensions\ContractId\Windows.Protocol\PackageId
Merge Tree HKCU Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore
c) Create Portability Rule (Portability Settings) to save and Restore the "ModernApps Classes" Ruleset
- Actions: Save, Restore
- Ruleset: ModernApps Classes"
- Apply Registry Rules
- Save Path: (your current portability save path)
- UID: ModernAppsClasses
Note: Persisting apps are not tested between different builds of windows. It assumes that the Windows 10 build does not change between logons. If it does the packages.vhdx might need to be deleted before logging in to a new build of windows 10.
2) If there is an problem with initializing or loading the modern apps please follow instructions Below:
Selectively choose which Modern apps to load
Description:
Powershell script to Selectively load which modern apps you want to load for new user logins
How to Use
Disable appreadiness services in your master image, use Start-fix.reg keys if Optimization tool breaks startmenu registration or do not disable the privacy options in your optimization.
Set the execution policy
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
Run Script
Run this command with admin rights to get the app name listings
Get-AppxPackage -allusers | select name
Select which apps you want to add back to the user, then modify first line of powershell script with apps you want to add.
$appxs="Microsoft.AAD.BrokerPlugin,Microsoft.Windows.Cortana,Microsoft.Windows.ShellExperienceHost,Microsoft.Windows.StartMenuExperienceHost,microsoft.accountscontrol"
Make AppLauncher Rule
%systemroot%\system32\cmd.exe
/c powershell.exe -executionpolicy bypass \\path\Scripts\ProcessAppX.ps1
After Config
Run Asyn
Code of ProcessAppX.ps1:
#Add apps you want to process in the first line
$appxs="Microsoft.MicrosoftEdge,Microsoft.Windows.ShellExperienceHost,Microsoft.Windows.Cortana,windows.immersivecontrolpanel"
$appxs=$appxs.Split(",")
foreach ($appx in $appxs) {
Get-AppXPackage -AllUsers -name *$appx* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
}
ProcessAppX.PS1 OS Version compatibility
OS Version | Tested |
---|---|
Windows 10 2004 | YES |
Windows 10 1909 | YES |
Windows 10 1903 | YES |
Windows 10 1809 | YES |
Windows 10 1803 | YES |
Windows 10 1709 | YES |
Windows 10 1703 | YES |
Windows 10 1607 | YES |
Product: ProfileUnity
Product Version: 6.8.x