Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 10 / How to Repair and Reinstall Microsoft Store on Windows 10 After Removal?

August 4, 2021 PowerShellWindows 10

How to Repair and Reinstall Microsoft Store on Windows 10 After Removal?

When uninstalling built-in modern apps, many Windows 10 users accidentally uninstall Microsoft Store as well. Most often it occurs when thoughtlessly running third-party tools or PowerShell scripts like Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage -online, which remove all modern UWP and APPX apps with no exceptions (see the article on how to properly uninstall built-in APPX apps in Windows 10). If the Microsoft Store is missing or malfunctioning in Windows 10, you can either reset it or repair it by following the instructions in this guide.

Contents:
  • How to Clear and Reset the Microsoft Store App in Windows 10?
  • Restoring Microsoft Store App on Windows 10 with PowerShell
  • How to Manually Install/Add Microsoft Store App on Windows 10 ?

How to Clear and Reset the Microsoft Store App in Windows 10?

If you cannot run the Microsoft Store app on Windows 10 or it works with errors, you can try to reset it to default settings and delete any saved/cached data:

  1. Open Settings -> Apps -> Apps & features;
  2. Find Microsoft Store and click Advanced options;Microsoft store app installed on windows 10
  3. In the next window, click Reset and confirm the deletion of the previous settings; reset Microsoft store app

You can also reset Microsoft Store with the command prompt using the command below:

WSReset.exe

Restoring Microsoft Store App on Windows 10 with PowerShell

When you remove system APPX apps using the Remove-AppxPackage PowerShell cmdlet, Windows doesn’t actually remove the app from the disk but just unregisters them. You can try to re-register the WindowsStore app using its XML manifest file.

  1. Make sure that app files are still stored on the local disk:
    Get-ChildItem 'C:\Program Files\WindowsApps'|where-object {$_.Name -like "*WindowsStore*"}
  2. In my example, the directories with the names Microsoft.WindowsStore _* remained in place; check for Microsoft store files on local drive
  3. Register WindowsStore app in Windows 10 using the AppXManifest.xml with the command:
    Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
    Tip. If you see an access denied error when running Add-AppxPackage, try to grant owner privileges on C:\Program Files\WindowsApps\ for your account using the icacls tool.
  4. Make sure that the Microsoft Store icon has appeared in the Start menu.

How to Manually Install/Add Microsoft Store App on Windows 10 ?

If there is no folder with Windows Store files in C:\Program Files\WindowsApps, you will see errors like these when trying to register the app using Add-AppxPackage:

Add-AppxPackage : Cannot find path.
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF6, Package could not be registered.
Cannot register the Microsoft.WindowsStore package because there was a merge failure.

Then you can download the WindowsStore files and all their dependencies from the Microsoft website and install the APPX applications manually.

This method is suitable for those users who have originally removed modern applications from the Windows image, as well as owners of Windows 10 LTSC Enterprise, which does not have any preinstalled UWP applications at all..
  1. Open the elevated PowerShell console;
  2. Run the command below to make sure that the WindowsStore app is not installed (removed):
    Get-AppXPackage -AllUsers |where-object {$_.Name -like "*WindowsStore*"}
    Microsoft store app missing on windows 10
  3. Go to https://store.rg-adguard.net/ (the website allows to get direct links and download APPX installation files from Microsoft website), paste the Microsoft Store link to the search field (https://www.microsoft.com/store/productId/9wzdncrfjbmp) and select Retail in the dropdown list;
  4. To make your Store app work correctly, you must download six APPX files for your Windows version (x64 or x86): Microsoft.NET.Native.Framework.1.7, Microsoft.NET.Native.Framework.2.2, Microsoft.NET.Native.Runtime.1.7, Microsoft.NET.Native.Runtime.2.2, Microsoft.VCLibs, Microsoft.UI.Xaml.2.4. download Microsoft store installation appx files
  5. I’ve got the following packages list:
    Microsoft.NET.Native.Framework.1.7_1.7.27413.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.NET.Native.Framework.2.2_2.2.29512.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.NET.Native.Runtime.1.7_1.7.27422.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.VCLibs.140.00_14.0.29231.0_x64__8wekyb3d8bbwe.Appx
    Microsoft.UI.Xaml.2.4_2.42007.9001.0_x64__8wekyb3d8bbwe.Appx
  6. In the same way, download the Microsoft.WindowsStore install file with the appxbundle extension (for example, Microsoft.WindowsStore_12104.1001.113.0_neutral_~_8wekyb3d8bbwe.appxbundle). If the downloaded file does not have an extension, add the .appxbundle extension manually;
  7. Copy all packages to one directory and install them using the PowerShell script below:
    $Path = 'C:\PS\Store'
    Get-Childitem $Path -filter *.appx| %{Add-AppxPackage -Path $_.FullName}
    Get-Childitem $Path -filter *.appxbundle | %{Add-AppxPackage -Path $_.FullName}
    install the microsoft store appx on windows 10
    If you see any dependency errors during Microsoft.WindowsStore installation, download, and install the specified APPX packages manually.
  8. Make sure that Windows Store has been installed and its icon appeared in the Start menu. microsoft store app appeared on windows 10 start menu

If you have a corporate VLSC (Software Assurance) subscription, you can download Windows 10 Inbox Apps ISO image from the Microsoft website. The offline image contains all built-in apps, including the Microsoft Store.

download Windows 10 Inbox Apps ISO image VLSC

To install Windows Store from the ISO image, you can use the command below:

Add-AppxProvisionedPackage -Online -PackagePath "D:\x86fre\Microsoft.WindowsStore_8wekyb3d8bbwe.appxbundle" –LicensePath "D:\x86fre\Microsoft.WindowsStore_8wekyb3d8bbwe.xml"

3 comments
2
Facebook Twitter Google + Pinterest
previous post
Changing Time Zone Settings in Windows via CMD, PowerShell, and GPO
next post
Kill a Windows Service That Stucks on Stopping or Starting

Related Reading

Create Organizational Units (OU) Structure in Active Directory...

May 17, 2022

Windows Security Won’t Open or Shows a Blank...

May 17, 2022

How to Manually Install Windows Updates from CAB...

May 16, 2022

RDS and RemoteApp Performance Issues on Windows Server...

May 16, 2022

Enable or Disable MFA for Users in Azure/Microsoft...

April 27, 2022

3 comments

Alex November 16, 2021 - 9:20 am

Thank you ! That helped me so much!

Reply
Mike December 26, 2021 - 9:59 am

Bro thank you so much! Worked a treat~

Reply
Ben March 29, 2022 - 5:49 pm

Worked like a charm, thanks!

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows 7
  • Windows Server 2019
  • Windows Server 2016
  • Windows Server 2012 R2
  • PowerShell
  • VMWare
  • Hyper-V
  • MS Office

Recent Posts

  • Create Organizational Units (OU) Structure in Active Directory with PowerShell

    May 17, 2022
  • Windows Security Won’t Open or Shows a Blank Screen on Windows 10/ 11

    May 17, 2022
  • How to Manually Install Windows Updates from CAB and MSU Files?

    May 16, 2022
  • RDS and RemoteApp Performance Issues on Windows Server 2019/2016

    May 16, 2022
  • Deploying Software (MSI Packages) Using Group Policy

    May 12, 2022
  • Updating VMware ESXi Host from the Command Line

    May 11, 2022
  • Enable or Disable MFA for Users in Azure/Microsoft 365

    April 27, 2022
  • Fix: You’ll Need a New App to Open This Windows Defender Link

    April 27, 2022
  • How to Reset an Active Directory User Password with PowerShell and ADUC?

    April 27, 2022
  • How to Completely Uninstall Previous Versions of Office with Removal Scripts?

    April 26, 2022

Follow us

woshub.com

ad

  • Facebook
  • Twitter
  • RSS
Popular Posts
  • Installing RSAT Administration Tools on Windows 10 and 11
  • Get-ADUser: Find Active Directory User Info with PowerShell
  • How to Hide Installed Programs in Windows 10 and 11?
  • Manage Windows Updates with PSWindowsUpdate PowerShell Module
  • How to Find the Source of Account Lockouts in Active Directory domain?
  • Tracking and Analyzing Remote Desktop Connection Logs in Windows
  • How to Create a UEFI Bootable USB Drive to Install Windows 10 or 7?
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top