Share via

Reinstalling Windows Store - Fail

Anonymous
2018-04-02T17:51:06+00:00

Brief Description: End of the last year while capturing a win 10 image, we mistakenly removed windows store using the the command remove-appxpackage and also the remove-appxprovisionedpackage. So what does it mean that the win 10 image doesnot have any record for windows Store. There are no file under "C:\Program Files\WindowsApps". and using this captured image (wim) some system were imaged and delivered to users without windows store apps. 

So, if we run the Get-Appxpackage *windowsstore* command in powershell as admin, it doesnot give any result. Also if we try to run Get-Appxpackage *windowsstore* -alluserswe get no result.

There are many blog/forums out there giving an only solution of re-registering the windows store back by running the below command:

**Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”} .**But the thing is the Store files are not present in C:\Program Files\WindowsApp , and the above command will never run.

Next Step: I tried copying the Store file from a System where Windows Store is available and pasted in the problematic machine. after that if i try to register the Windows Store, it get successfully installed. but now the problem is if i try to open Windows Store it will fail to open. Tried running the WSRESET.exe as admin and it always ended with the below error. 

ms-windows-store:PurgeCaches
The app didn't start.Any solution or help is greatly appreicated.
Windows for home | Windows 10 | Microsoft Store

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2018-04-10T14:21:50+00:00

    thanks for the reply. i tried this, unfortunately no luck. 

    as i said . during the initial BASE OS captured (wim file) we removed the files for Microsoft Store. so when we used this wim file that doesnot have any install files for Store to build new system the systems are getting build with no Store files. 

    if i ran the below command i get no result. 

    get-appxpackage *WindowsStore* for current user no result. and if i run the get-appxpackage *windowsStore* -allusers then also i dont get any result. 

    is there any way of getting the appx file (WINDOWS STORE) from microsoft which i can just install like any other apps installtion.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-04-02T18:05:16+00:00

    Check Windows Update and install the latest updates. Sometimes Microsoft releases infrastructure fixes for the Store through Windows Update.

    Before carrying out this procedure, disconnect from the Internet. That means turning off Wi-Fi and disconnecting from a wired connection. If you don't, Windows 10 will indicate some files are in use and cannot be modified or the command will be non-responsive. Also, you should restart your computer after disconnecting from the Internet. The easiest way to do it is to enable Airplane mode from the Action Center - Windows key + A.

    1. Open Start, type: CMD

    Right click CMD

    Click Run as administrator

    Type each of the following then hit Enter

    taskkill /F /FI "SERVICES eq wuauserv" (do this multiple times)

    net stop cryptSvc

    net stop bits

    net stop msiserver

    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old

    rmdir C:\Windows\SoftwareDistribution\DataStore

    rmdir C:\Windows\SoftwareDistribution\Download

    If that does not work...

    1. Open Start, type: CMD

    Right click CMD

    Click Run as administrator

    Type each of the following then hit Enter

    Run these codes:

    Net Stop bits

    Net Stop wuauserv

    Net Stop appidsvc

    Net Stop cryptsvc

    Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak

    Ren %systemroot%\system32\catroot2 catroot2.bak

    Net Start bits

    Net Start wuauserv

    Net Start appidsvc

    Net Start cryptsvc

    After running these commands, check if your issue is fixed.

    When complete, hit Enter, then restart, then try updating again.

    Was this answer helpful?

    0 comments No comments
  3. Vijay A. Verma 104.9K Reputation points Volunteer Moderator
    2018-04-02T18:04:03+00:00

    Though generally, I don't recommend creating a new admin local user but if you create a new admin local user, it should solve the problem.

    Attempt it and let me know.

    Running SFC/DISM is also something which you can attempt.

    https://answers.microsoft.com/en-us/windows/for...

    Was this answer helpful?

    0 comments No comments