[SOLVED] Windows app store issue

Status
Not open for further replies.

Humble

Well-known member
Joined
Jul 15, 2016
Posts
233
Windows 10 Home, HP Spectre x 360, 16 RAM, 512 SSD

Windows app store deleted by accident. Unable to download/install any app.
Is there a way to get windows app store going again without re-installing the system?
Thx
 
Hi,
Press Windows key + X
Right-click Windows PowerShell choose Windows Powershell (Admin)
At the PowerShell prompt, type the following then hit Enter:

Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
 
Hi,
Press Windows key + X
Right-click Windows PowerShell choose Windows Powershell (Admin)
At the PowerShell prompt, type the following then hit Enter:

Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
is not recognized as an internal or external command,
operable program or batch file.
 
It works for me. You either are not in Powershell with elevated rights or you missed something when you copied it.

That script will not work from the command exe, only Powershell.

Hit the start button, type Powershell, when you see PowerShell, right-click it and choose run as administrator. Then paste that script in there and hit enter, please.

Let me know if you need further help. :-)
 
It works for me. You either are not in Powershell with elevated rights or you missed something when you copied it.

That script will not work from the command exe, only Powershell.

Hit the start button, type Powershell, when you see PowerShell, right-click it and choose run as administrator. Then paste that script in there and hit enter, please.

Let me know if you need further help. :-)
yup, i do need further help, thanks
so i am in powershell, admin mode


C:\WINDOWS\system32>Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}


'Get-AppXPackage' is not recognized as an internal or external command, operable program or batch file.



Please let me know what I missed?
 
Hi. :)

A thought:

The above error is common when you run the command from an elevated command prompt instead of PowerShell.

To make sure that you are in Powershell, write Powershell in the Search area, and then right click the item in the list to run it as administrator. It's a blue window, not black.

EDIT: xrobwx71 already asked you to do so, but just to make sure take a screenshot of the error you are getting.
 
Last edited:
Hi. :)

A thought:

The above error is common when you run the command from an elevated command prompt instead of PowerShell.

To make sure that you are in Powershell, write Powershell in the Search area, and then right click the item in the list to run it as administrator. It's a blue window, not black.
OK, so I had a misunderstanding, mistook command prompt for PowerShell.

Now I tried PowerShell in Admin mode.
Below a copy of the red text that appeared after pasting in the lines you suggested:

Get-Process : A positional parameter cannot be found that accepts argument 'Get-AppXPackage'.
At line:1 char:1
+ PS C:\Users\Joy> Get-AppXPackage *WindowsStore* -AllUsers | Foreach { ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-Process], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetProcessCommand

PS C:\WINDOWS\system32> Get-AppXPackage : Access is denied.
Get-AppxPackage : A positional parameter cannot be found that accepts argument 'is'.
At line:1 char:1
+ Get-AppXPackage : Access is denied.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-AppxPackage], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.Windows.Appx.PackageManager.Commands.GetAppxPackag
eCommand

PS C:\WINDOWS\system32> Access is denied.
Access : The term 'Access' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Access is denied.
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (Access:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException


I am not sure which one to use, coz three powershell entries show up in the search

Powershell
Powershell x 86
Powershell ISE
 
Last edited:
Right-click the one that says Powershell then choose run as Administrator, then enter. If it works, you'll see a small teal green rectangle open up at the top of the Powershell window and some yellow text. it shouldn't take but a few seconds. Reboot then check if the store is back.

Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

Make sure and copy everything even the quotes and curly brackets.

This is what it will look like if it works for you.







powershell execute box.jpg
 
Right-click the one that says Powershell then choose run as Administrator, then enter. If it works, you'll see a small teal green rectangle open up at the top of the Powershell window and some yellow text. it shouldn't take but a few seconds. Reboot then check if the store is back.

Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

Make sure and copy everything even the quotes and curly brackets.

This is what it will look like if it works for you.







View attachment 66003

@xrobwx71 :
SUCCESS !! store back !!
Awesomesauce.
KUDOS and GRATITUDE for sharing skills, insights.
Yet another issue solved.
Thank you for your help, keep up the great work!
 
In your example, there is a colon : after -AllUsers it should be a pipe or vertical bar |

Rich (BB code):
 Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
 
Code:
[B]Get-AppXPackage *WindowsStore* -AllUsers [COLOR=rgb(184, 49, 47)]|[/COLOR] Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}[/B]
still doesnt workpower shell error 1.png
 
Last edited:
You appear to be running different versions of PowerShell. Your first screenshot shows a 2009 copyright, your second a 2016 copyright.

When I run PowerShell as Admin I get no copyright date showing. The full path to the one I'm using is: %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe

Windows 7 is out of support, so it's no longer a valid Windows operating system as a daily driver that's in contact with the internet/cyberspace.
 
By the way, I am getting the same error message about Get-AppXPackage in the latest version of PowerShell, which is Version 7.

The ancient version 1 should be on your machine. If you open File Explorer and navigate to: C:\Windows\System32\WindowsPowerShell\v1.0
you can then right click on the powershell.exe that's there and choose Run As Administrator. Get-AppXPackage should function then. Remember to use the command:

Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

which is what was given way back when by @xrobwx71.

I have on idea why Get-AppXPackage is being so cranky in other versions of PowerShell.
 
You appear to be running different versions of PowerShell. Your first screenshot shows a 2009 copyright, your second a 2016 copyright.

When I run PowerShell as Admin I get no copyright date showing. The full path to the one I'm using is: %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe

Windows 7 is out of support, so it's no longer a valid Windows operating system as a daily driver that's in contact with the internet/cyberspace.
for the powershell I find an update on internet i i make it the lastest version 5.1
 
Status
Not open for further replies.

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top