Forum Discussion
Christiaan_Brinkhoff
Microsoft
Jul 31, 2020(Azure) Virtual Desktop Optimization Tool now available
Optimizing images has always been an important component of preparing images as part of a traditional Remote Desktop Services (RDS) infrastructure or virtual desktop infrastructure (VDI)....
Richard Blanco Jr.
Dec 16, 2021Brass Contributor
Hi. Is there a way to perform a process to reverse the optimization process on a WVD host?
Unfortunately, not having the Windows Store apps has caused usability issues for a deployment. The users actually need Windows Calculator and the Windows Media player as an example.
Attempts for the user to reinstall the Windows Store app ends in unusual behavior where if the user installs Calculator as an example, it is not available for their current session. Once they logoff and logon again, the Store apps are no longer available and even a taskbar pin to the app no longer works. I assume this may be some Local policy or similar, but not sure where to start to check.
My initial thoughts were to reverse the entire process but not sure that is even possible?
Open to recommendations.
Thanks
Richard
- MortenPedholtDec 17, 2021Copper ContributorHi Richard
I hope this can help you a bit.
So I have been using this optimization Tool since it came out both for Azure Virtual Desktop and Windows 365. I have tried reverting once but gave up because many things were a mess. So I created my session host again (It was not a big deal since I'm using DevOps Automation.) and excluded the things in the optimization script I still needed.
Regarding the Windows Store app, if you are using FSLogix, the apps won't be there after the users log off and on again. Then they have to download it again. This is FSLogix specific issue.
https://techcommunity.microsoft.com/t5/azure-virtual-desktop/how-do-we-install-store-apps-the-proper-way/m-p/1603362/highlight/true#M4009- Richard Blanco Jr.Dec 17, 2021Brass Contributor
Thanks so much for your reply. We considered recreating the WVD shared hosts but the amount of LOB apps already in the deployment is staggering.
The link you sent regarding the Modern Windows apps and the FSLogix profile is certainly news to us. All our deployments use FSLogix and the fact that this wont work is amazing. I just tested this in a secondary deployment and the Windows app (i.e. Calculator) definitely gets removed from the user after the install.
I guess I need to find a way to install a regular Win32 calculator app or even the classic windows one if its available.
- MortenPedholtDec 18, 2021Copper ContributorHi Richard
Well, it sounds like you are configuring each session host manually? I always read my AVD machines from a Master/GoldenImage, or using Intune/SCCM.
There is also a difference if the Appx package is installed for one specific user or all users. You can perhaps try to do it the other way again. below is a snippet of how the script removes Appx packages. then do an Add instead of Remove if you know what I mean?
#region Begin Clean APPX Packages
<#
If (Test-Path .\ConfigurationFiles\AppxPackages.json)
{
$AppxPackage = Get-Content .\ConfigurationFiles\AppxPackages.json | ConvertFrom-Json
$AppxPackage = $AppxPackage | Where-Object { $_.VDIState -eq 'Disabled' }
}
If ($AppxPackage.Count -gt 0)
{
Foreach ($Item in $AppxPackage)
{
$Package = "*$($Item.AppxPackage)*"
Write-Verbose "Attempting to remove $($Item.AppxPackage) - $($Item.Description)"
Get-AppxPackage -Name $Package | Remove-AppxPackage -ErrorAction SilentlyContinue | Out-Null
Write-Verbose "Attempting to remove [All Users] $($Item.AppxPackage) - $($Item.Description)"
Get-AppxPackage -AllUsers -Name $Package | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
Write-Verbose "Removing Provisioned Package $($item.AppxPackage)"
Get-AppxProvisionedPackage -Online | Where-Object { $_.PackageName -like $Package } | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue | Out-Null
}
}
#>
#endregion