ticktock Posted February 11, 2020 Posted February 11, 2020 I'm just doing some testing on W10 Edu 1909. Everything was going well until I noticed the store apps (Calculator, photo viewer etc) started faulting. I followed this https://support.microsoft.com/en-gb/help/2798317/microsoft-store-apps-fail-to-start-if-default-registry-or-file-permiss (I am getting issue 2) but couldn't see any problems with GPOs. The weird thing is if I delete the profile (I am using local profiles) it starts to work again. This happens randomly and I have trouble reproducing the error. When one profile stops working others are still ok. The are a few threads on here but mainly to do with roaming profiles. Any help gratefully accepted. Faulting application name: Calculator.exe, version: 10.1812.1901.4008, time stamp: 0x5c304989Faulting module name: Windows.UI.Xaml.dll, version: 10.0.18362.449, time stamp: 0xb90db728Exception code: 0xc000027bFault offset: 0x0000000000712ec0Faulting process ID: 0x18a8Faulting application start time: 0x01d5e05fb856dbd0Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_10.1812.10048.0_x64__8wekyb3d8bbwe\Calculator.exeFaulting module path: C:\Windows\System32\Windows.UI.Xaml.dllReport ID: 728eb3ac-cc4e-48a7-b38e-51cc3ca14bbdFaulting package full name: Microsoft.WindowsCalculator_10.1812.10048.0_x64__8wekyb3d8bbweFaulting package-relative application ID: App
ticktock Posted February 11, 2020 Author Posted February 11, 2020 Yes, I powershelled most of them off. Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.BingNews | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.BingWeather | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.GetHelp | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Getstarted | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Messaging | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Microsoft3DViewer | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.MicrosoftOfficeHub | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.MicrosoftSolitaireCollection | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.MixedReality.Portal | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.NetworkSpeedTest | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.News | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Office.Lens | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.OneConnect | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.People | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Print3D | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.RemoteDesktop | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.SkypeApp | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.WindowsAlarms | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.WindowsCamera | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like microsoft.windowscommunicationsapps | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.WindowsFeedbackHub | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.WindowsMaps | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.WindowsSoundRecorder | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Xbox.TCUI | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxApp | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxGameOverlay | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxIdentityProvider | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxSpeechToTextOverlay | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.ZuneMusic | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.ZuneVideo | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *EclipseManager* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *ActiproSoftwareLLC* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *AdobeSystemsIncorporated.AdobePhotoshopExpress* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Duolingo-LearnLanguagesforFree* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *PandoraMediaInc* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *CandyCrush* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Wunderlist* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Flipboard* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Twitter* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Facebook* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Spotify* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Minecraft* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Royal Revolt* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Dolby* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Windows.CBSPreview* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Phone* | Remove-AppxProvisionedPackage -OnlineGet-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxGamingOverlay | Remove-AppxProvisionedPackage -Online
BOOT Posted February 11, 2020 Posted February 11, 2020 Have you enabled the [Allow deployment operations in special profiles] policy? in: Computer Configuration\Administrative Templates\Windows Components\App Package Deployment 1
ticktock Posted February 11, 2020 Author Posted February 11, 2020 I've just re-imaged the machine to see if I can break it again. I'll give it a try if I can recreate it.
ticktock Posted February 13, 2020 Author Posted February 13, 2020 Just discovered it's delprof2 causing this. We run it on shutdown, when i log back into the machine as a profile that has been deleted apps fail to launch (calculator etc). If I delete the profile using system properties and user profile everything is fine. Hmmm, need a delprof2 alternative I think.
robyholmes Posted February 13, 2020 Posted February 13, 2020 I'd also be interested in a DelProf alterative as well as we're finding some apps are missing and I think it might be Delprof2 causing it.
synaesthesia Posted February 13, 2020 Posted February 13, 2020 Shouldn't be too hard to script for someone wishing to do so - remove any folders in c:\users that are not default users or predefined special users, remove any registry keys in hklm/windows nt/currentversion/profilelist that are not default users or predefined special users.I wasn't aware delprof did any more than that anyway? 1
ticktock Posted February 13, 2020 Author Posted February 13, 2020 Just found this on Edugeek so going to give it a whirl: $profiles = $null $profiles = Get-WMIObject -class Win32_UserProfile | Where {((!$_.Special) -and ($_.LocalPath -ne "C:\Users\Administrator") -and ($_.LocalPath -ne "C:\Users\UpdatusUser"))} if ($profiles -ne $null) { $profiles | Remove-WmiObject } Exit 1
robyholmes Posted February 13, 2020 Posted February 13, 2020 Just found this on Edugeek so going to give it a whirl: $profiles = $null $profiles = Get-WMIObject -class Win32_UserProfile | Where {((!$_.Special) -and ($_.LocalPath -ne "C:\Users\Administrator") -and ($_.LocalPath -ne "C:\Users\UpdatusUser"))} if ($profiles -ne $null) { $profiles | Remove-WmiObject } Exit Please can you report back if that works. Looks far to easy to me, ha 1
ticktock Posted February 13, 2020 Author Posted February 13, 2020 You were correct that didn't work! but I found this: https://superuser.com/questions/1481644/windows-10-uwp-apps-launch-and-then-disappear-immediately I put the powershell code contained in the link to execute at login and it worked. It seems if you delete a profile in W10 and then log back in with profile again it thinks the app has already been provisioned for that user and doesn't do it again. The code provisions the apps again and off we go. 1
robyholmes Posted February 14, 2020 Posted February 14, 2020 You were correct that didn't work! but I found this: https://superuser.com/questions/1481644/windows-10-uwp-apps-launch-and-then-disappear-immediately I put the powershell code contained in the link to execute at login and it worked. It seems if you delete a profile in W10 and then log back in with profile again it thinks the app has already been provisioned for that user and doesn't do it again. The code provisions the apps again and off we go. Are you running this on each login? If so how does it handle times when the app is already installed and working? Does it skip or slow logins at all? We don't tend to have many problems just every now and again so I want to make sure it doesn't affect anything else as its not a big issue currently. I'll do some tester after half term and see what happens.
ticktock Posted February 14, 2020 Author Posted February 14, 2020 Yes running on each login, no delay to login speed. It also doesn't seem to affect profiles that have already been logged in. I did have to set the GPO policy to run scripts immediately at login or there is a 5 min delay. I've got a problem with the calculator tile itself now, it displays ok for a few seconds then grays out and underlines! I think the issue is that something is left behind after profile deletion causing the machine to think that apps have already been provisioned next time you login with a profile that has previously been deleted.
ticktock Posted February 14, 2020 Author Posted February 14, 2020 Forget the above, it's just not consistent. I'm just getting random results. I deleted the test profile, rebooted and now the icon works but the calculator faults. I'm either going to have to use a 3rd party calculator or LTSC. I suspect there won't be issues until there is a need to delete profiles.
ticktock Posted February 14, 2020 Author Posted February 14, 2020 (edited) I tried this instead of delprof2, seems to work ok and no problems since....yet! $Exclusions = “NetworkService”,”LocalService”,”systemprofile”,"other profiles you want to exclude" Get-CimInstance win32_userprofile -filter "special = false"| Where-Object { $_.LocalPath.split('\')[-1] -notin $Exclusions} | Remove-CimInstance Edited February 14, 2020 by ticktock 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now