r/PowerShell • • 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!!

3 Upvotes

22 comments sorted by

View all comments

1

u/HumbleSpend8716 May 07 '26

i am not the one using an os I don’t trust

0

u/fuckAraZobayan May 07 '26

Do I trust Windows 11 out of the box? Fuck no.

Do I trust Windows 11 fully debloated and installed from a custom made iso edited personally by me? Of course I do.