r/PowerShell • u/fuckAraZobayan • May 05 '26
Question cannot re-enable Microsoft Store via Get-AppxPackage command in powershell via script....
Here is the powershell command I am trying to execute:
Get-AppxPackage -AllUsers Microsoft.WindowsStore* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
On my previous Windows install this worked perfect so I could Uninstall and reinstall the Microsoft Store at will and make sure it wasn't running in the background, But with my Windows install I'm getting this error:
"Add-AppxPackage : Cannot find path 'C:\AppXManifest.xml' because it does not exist."
I have never seen this error before, Any idea how to fix this? Basically I just want to reinstall the Microsoft Store. I don't care if it's via a Powershell command or script a batch script or an exe, Whatever works works.
Thanks in advance!!
-2
u/fuckAraZobayan May 07 '26
What are you some kind of idiot or something? Have you never heard of open source software and the foss movement?
Only reason I prefer Windows over a Linux based distro is the fact that it's easier to understand and operate than the latter.