To fix any issues with the Microsoft Store on your Windows 11 PC, you can uninstall and reinstall it. To get started, open a PowerShell window as administrator and type in the command "Get-AppxPackage -allusers *WindowsStore* | Remove-AppxPackage". After your PC reboots, open another PowerShell window as administrator and enter the command "Get-AppxPackage -AllUsers Microsoft.WindowsStore* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}" to reinstall the Microsoft Store. Keep in mind that this process involves removing core packages, so it should only be used as a last resort when other fixes have failed. It's also recommended to create a system restore point before removing the Store to prevent any potential issues.
Unfortunately, unlike other applications, Microsoft Store cannot be uninstalled through the traditional methods of using Settings or Control Panel. The only way to remove the Store app is by running a specific command from a PowerShell window.
Step 1: Open Powershell
To begin this process, navigate to your PC's "Start" menu and locate the app titled "PowerShell". Right-click on the app and select "Run as Administrator".
In the “User Account Control” prompt, select “Yes.”
On the PowerShell window, type the following command and press Enter:
Get-AppxPackage -allusers *WindowsStore* | Remove-AppxPackage
To completely remove Microsoft Store from your PC, you can use the PowerShell command "Remove-AppxPackage -allusers Microsoft.WindowsStore". This command will remove the app from all users on your PC.
Once the command has finished running, it's important to restart your computer. You can do this by opening the "Start" menu, clicking the "Power" icon, and choosing "Restart".
Step 2: Reinstall Microsoft Store on Windows 11
To Microsoft Store back on your PC fully refreshed, run a command in PowerShell as follows.
To open PowerShell as an administrator, navigate to the "Start" menu and search for "PowerShell." Once found, right-click and select "Run as Administrator." If prompted by the "User Account Control" prompt, click "Yes." Next, in the PowerShell window, enter the following command:
The command "Get-AppxPackage -AllUsers Microsoft.WindowsStore* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}" installs the Microsoft Store app for all users on your system. The parameter "-allusers" ensures that it is installed for all users. The parameter "Microsoft.WindowsStore*" refers specifically to the Microsoft Store app.
When you’ve executed the command, restart your PC. You now have a new copy of Microsoft Store installed on your computer. Enjoy!