Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

Have you enabled the [Allow deployment operations in special profiles] policy?

in: Computer Configuration\Administrative Templates\Windows Components\App Package Deployment

  • Thanks 1
Posted
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.
Posted
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?
  • Thanks 1
Posted

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

  • Thanks 1
Posted
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

  • Thanks 1
Posted

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.

 

 

  • Thanks 1
Posted
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.

Posted
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.
Posted
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.
Posted (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 by ticktock
  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...