I have a group of Windows 10 workstations that previously had the group policies "Disable All Apps from the Microsoft Store" and "Turn of the Store application."
Now because of reasons these machines need the Microsoft Camera app installed. After turning off the GPO's, I'm still unable to install either the Windows Store or the Camera app.
I've tried the following
running wsreset.exe
removing and re-installing all store apps with "Get-AppxPackage -allusers | foreach {Add-AppxPackage -register "$($_.InstallLocation)\appxmanifest.xml" -DisableDevelopmentMode}"
Downloading and installing with the appxbundle for the camera app from MS Store for Business
Trying to reinstall the Windows Store with "Get-AppXPackage WindowsStore -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}"
Removing and re-adding the user profile
Short of reimaging the machine, does anyone know another way to reinstall the Windows Store.
Videos
For some reason,
"Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "_.InstallLocation)\AppXManifest.xml"}"
Does not work for me. It seems to do nothing after I press enter. It just opens a new line in the Administrator PowerShell and appears to do nothing. Am I doing anything wrong? Microsoft Store does not seem to appear anywhere...
Hello Madofficer392,
Thank you for updating me that information. Can you take a screenshot after you paste the command in Powershell? Please post it on your next reply. For the meantime, kindly create a new administrator account then check if everything is working there.
I hope this helps! Please let me know if you have any further concerns.
Sincerely
John DeV
Independent Advisor
If you're having issues with Microsoft Store app, we just released a new video that will walk you through some things to try including how to reinstall the Microsoft Store app.
How to troubleshoot the Microsoft Store app
Follow along with the video:
Terminate or Reset the app
- Press Windows logo key + i
- Select Apps
- Select Microsoft Store, then select Advanced options
- Select Terminate
- If that doesn't work, select
Reset Use the troubleshooter
- Search for Troubleshoot settings and select Open
- Select Windows Store apps
- Select Run the troubleshooter
Reinstall the app
- Press Windows logo key + x
- Select Windows PowerShell (Admin)
- Select Yes
- Copy and paste the command: Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "
_.InstallLocation)\AppXManifest.xml"}
- Press Enter
- Restart your computer
Here are some additional resources for you.
Fix problems with apps from Microsoft Store
Microsoft Store doesn't launch Trouble finding
Microsoft Store in Windows 10
You can not download this but you can reinstall -
Type Powershell in Windows Start Search box
Right click on Powershell > Run As Administrator
Copy the below and paste into Powershell and Enter
Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "_.InstallLocation)\AppXManifest.xml"}
Once finished, reboot your computer
Look for updates in Store and update
For reference: Now it is very much possible with WinAppDeployCmd install
https://stackoverflow.com/questions/45894261/can-i-use-winappdeploycmd-install-update-on-pc-itself
https://docs.microsoft.com/en-us/windows/uwp/packaging/install-universal-windows-apps-with-the-winappdeploycmd-tool
First get the ProductId. Here is the link for Jetpack Joy:
https://microsoft.com/p/jetpack-joy/9pmw2dsr94ch
so the ProductId is 9pmw2dsr94ch. Then go here:
https://store.rg-adguard.net
change the first option to ProductId, then enter the ProductId. You can leave
the last option as the default. Then click the checkmark to search. From here you
can download file like this:
15609SniperStrikeFPSShoot.JetpackJoy_10.5.0.70_x64__9cjb9ckgksp78.eappx
However in this case, since the file type is eappx, that is an encrypted file,
so I am not sure what to do with it. Sorry I know that is not too helpful, but I
wanted to post this because in my case, the app I was looking for resulted in an
appxbundle file instead, which those can be extracted to give you the exe
file. For anyone dealing with eappx files, this thread might be helpful:
https://redd.it/56wrda
- Go to https://apps.microsoft.com/store/apps
- Search for your App
- Copy the ID from the URL, for example:
9WZDNCRFJ3TJ - run the following command
winget install 9WZDNCRFJ3TJ -s msstore
If you do not have winget here are some instructions how to install: https://github.com/microsoft/winget-cli
This is what I tried and worked out for me:
- Go to MS Store and copy the link of the app you want to install https://apps.microsoft.com/store/apps
- Copy the link of the app and paste in this website https://store.rg-adguard.net, search in
RPmode. - In the results, download only the files that end with the extensions
.appx,.appxbundle, or.msixbundle.
Note: Avoid files with extensions.eappx,.eappxbundle, or.emsixbundle, as these are encrypted files. - Right-click of the app you need and save as, your browser .might detect it as a harmful app, you can ignore and keep the file
- Make sure you also download all the dependencies and save them as well
- Once you download all the dependencies and the application, start by installing dependencies first, and then the main app
- To install, go to the downloads location, right click on each and click Install
- Optional: you can also install via powershell
Add-AppxPackage -Path "<PATH>".appx
You can now use winget to install msstore apps on windows 10 and 11.
Use winget search <app_name> --source=msstore to make a search, and use the id of the app to install and upgrade the app.
For example, to install Netflix:
- First I made a search with
winget search Netflix --source=msstore, I see that the app id is9WZDNCRFJ3TJ. - I install app with
winget install -e -i --id=9WZDNCRFJ3TJ --source=msstore. - I upgrade app with
winget upgrade -e -i --id=9WZDNCRFJ3TJ.
store.rg-adguard.net is a GUI for generating direct download links to store apps. Peeking at the source of that page, we can piggyback off them to download the content directly, but using PackageFamilyName, rather than Name (in your example it would be Microsoft.HEVCVideoExtension_8wekyb3d8bbwe).
function Download-AppxPackage {
[CmdletBinding()]
param (
[string]$PackageFamilyName,
[string]$Path
)
process {
$WebResponse = Invoke-WebRequest -Method 'POST' -Uri 'https://store.rg-adguard.net/api/GetFiles' -Body "type=PackageFamilyName&url=$($PackageFamilyName)&ring=Retail&lang=en-US" -ContentType 'application/x-www-form-urlencoded' -UseBasicParsing
$LinksMatch = $WebResponse.Links | where {$_ -like '*_x64*.appx*'} | Select-String -Pattern '(?<=a href=").+(?=" r)'
$DownloadLinks = @($LinksMatch.matches.Value)
for ($i = 1; $i -le $DownloadLinks.Count; $i++) {
Invoke-WebRequest -Uri $DownloadLinks[$i-1] -OutFile "$Path\$PackageFamilyName($i).appx"
}
}
}
This is limited to the x64 version, and the path must point to a folder. It will download the package and its dependencies and save them all as PackagefamilyName(n).appx