[SOLVED] Windows 10 Pro v1909, Unable to restore UWP/APPX after PowerShell unistall script

Discussion in 'Windows 10' started by TEMPUSER_, Jan 8, 2020.

  1. TEMPUSER_

    TEMPUSER_ MDL Novice

    Jan 12, 2019
    6
    0
    0
    #1 TEMPUSER_, Jan 8, 2020
    Last edited: Jan 8, 2020
    Hello,
    One tablet that we received in our company went through PS uninstall script, that removed all* UWP/APPX applications.
    So as in result tablet that has two cameras, cannot make use of them. Even Calculator is missing.

    I tried these commands:
    Code:
    Get-AppxPackage -allusers | foreach {Add-AppxPackage -register „$($_.InstallLocation)\appxmanifest.xml“ -DisableDevelopmentMod}
    Code:
    Get-AppxPackage -allusers Microsoft.WindowsCamera | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register „$($_.InstallLocation)\AppXManifest.xml“}

    First one attempts to restore all applications, and I think only MyPhone application appeared in Start menu after script execution & Restart.
    Second one does not do anything in my case, once entered, PS don't show any signs of process, and after half a minute allows user to enter commands again.

    Our environment.
    • Windows 10 Pro x64 v1909. Attempted to restore apps on v1809, later got an update, and now we run v1909.
    • AD user, without administrator rights, or local Admin account.
    • All commands were performed or under local Administrator account, or via AD\User by using PowerShell by selecting "Run as another user".
    • Most internet traffic is blocked via Firewall rules on router and Kaspersky server (so more likely all traffic is being blocked).
    • My colleagues abroad tried to restore apps on another PC, and they got some progress in it.
    • If using TrustedInstaller access rights, C:\Program Files\WindowsApps\ has files.
    • Camera application files appears in C:\Program Files\WindowsApps\DeletedAllUserPackages\Microsoft.WindowsCamera
    • If I try to use register command with appxmanifest.xml from DeletedAllUserPackages, then I get error [0x80073CF9]. Probably this is not right way to restore an app.
    • If I remember correctly, only when using TrustedInstaller access, it lets me avoid error when OS reports that appxmanifest.xml file path wasn't found.
    • Tablet has also missing MS-Store application. Saw few reports and articles which mentioned that once unistalled, it can impact restore process significantly.
    • There is an WSRESET.EXE in system32 folder, which is meant to be used to restore Store application, but due to internet connection blocking, application cannot do much.
    So my questions will be:
    • While restoring apps, does user need some specific access rights?
    • During restore process, does computer need internet access (re-download few files)?
    • So maybe in my case "Reset this PC" option will be last working option? Most reports on web mention that this approach mostly helps. (But this is similar to OS Reinstall, so probably I will try this once I'm desperate).
    • Can we restore preinstalled apps via DISM, and v1909 ISO?
    • WSRESET.EXE - can it restore Store application, and did anyone had successful experience with it?
    • Should I try to install Store from [guide-add-store-to-windows-10-enterprises-sku-ltsb-ltsc] into our Pro version, or this definitely will introduce issues with future updates?
     
  2. TEMPUSER_

    TEMPUSER_ MDL Novice

    Jan 12, 2019
    6
    0
    0
  3. TEMPUSER_

    TEMPUSER_ MDL Novice

    Jan 12, 2019
    6
    0
    0
    Solved, with internet enabled, AD user's Store constantly tried to get updates and camera app itself, and with antivirus blocking these connections, necessary apps didn't appeared in start menu as available.
    Just turned off internet, and tried to install appx again, and it worked just fine.