Other weirdness, Get-AppxPackage -allusers returns nothing. Solution: Add a web application user policy with Full control for the Farm Administrator who runs the Script Open SharePoint 2016/2013/2010 Central Administration site as a Farm Administrator Click. We get access denied error, if you try to add then in windows with the gui, it fails. Get-appxpackage -allusers Microsoft.Wallet Remove-AppxPackage And ideally finish this by adding a final line checking what else is installed on the computer by running 'Get-AppxPackage -AllUsers Select Name' and printing result to logs. (Exception from HRESULT: 0x80070005 (EACCESSDENIED)) on running PowerShell cmdlets, such as: Get-SPWeb, New-SPUser, Get-SPUser, Set-SPUser, etc. Or DISM /Online /Add-Capability /CapabilityName:~~~~0.0.1.0 If we use Add-WindowsCapability -Online -Name '~~~~0.0.1.0' To use this parameter, you must run the command by using administrator permissions. If it is a bundle, use -PackageTypeFilter and specify the bundle. According to the help document, 'This cmdlet works off the parent package type. Not sure what going on, we have a bunch of new imaged PC's as well as existing PC's that have windows store issues, like missing notepad, paint, WordPad and others. According to the help document of REMOVE-APPXPACKAGE, I inquired about the explanation of the parameter -ALLUSERS.