Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • 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 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"

5 comments
4
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

How to Connect VPN Before Windows Logon

November 14, 2023

Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

November 7, 2023

Send Emails with Microsoft Graph API and PowerShell

November 6, 2023

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

5 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
Diego May 22, 2022 - 11:28 pm

It actually worked!! If the path command doesn’t work in the powershell use CD .. CD .. and then CD {path} to get to the folder!!

Reply
i love u March 28, 2023 - 4:07 pm

i love you

Reply

Leave a Comment Cancel Reply

Categories

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

Recent Posts

  • How to Connect VPN Before Windows Logon

    November 14, 2023
  • Removing Azure Arc Setup Feature on Windows Server 2022

    November 9, 2023
  • Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

    November 7, 2023
  • Send Emails with Microsoft Graph API and PowerShell

    November 6, 2023
  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Manage Windows Updates with PSWindowsUpdate PowerShell Module
  • Configuring Port Forwarding in Windows
  • Start Menu or Taskbar Search Not Working in Windows 10/11
  • Get-ADUser: Find Active Directory User Info with PowerShell
  • Adding Drivers into VMWare ESXi Installation Image
  • How to Hide Installed Programs in Windows 10 and 11
  • Configuring SFTP (SSH FTP) Server on Windows
Footer Logo

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


Back To Top