Reinstall Windows 10 Store app

We recently had an issue whereby the Windows 10 Store app wouldn’t load properly on a user’s machine.

It is however possible to reinstall the Store app through powershell using the following script found on https://blogs.technet.microsoft.com/lukeb/2018/03/02/powershell-reinstall-windows-10-store-app/:

#Reinstall-StoreApp.ps1
#Requires -RunAsAdministrator

$Store=Get-Appxpackage -Allusers |
Where-Object {$_.PackageFullName -match ‘WindowsStore’} |
Sort-Object -Property Version -Descending |
Select-Object -First 1

$PackageName=$Store.PackageFullName
$StoreManifest = “C:\Program Files\WindowsApps\$PackageName\AppxManifest.xml”

if (Test-Path -Path $StoreManifest) {
Add-AppxPackage -register $StoreManifest -DisableDevelopmentMode
}

 

Hope this helps!

About the author