Symptoms.
as described here: Store - Re-register in Windows 10 - Windows 10 Forums
I've tried to run command
Code:
PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"
from cmd with admin rights, but I've again got error with some package. ( MicrosoftOfficeHub)
NOT a syntax error, but error with a package.
Possible reason: May be I didn't add my Microsoft Account (online login) to Windows Store. Or may be Windows lost credentials, or maybe I've changed password for my microsoft account, but, finally, Windows Store was unable to communicate with server. I guess Microsoft has changed formats and some xml manifests become incorrect. Or something like that. But finally some packages got corrupted and PackageManager couldn't read them and crashed every time you try to install, reinstall Windows Store or (I suppose) run Windows Store or other Store applications (I was unable to run Calculator)
Solution:
1. you should definitely create restore point. http://windows.microsoft.com/ru-ru/w...-restore-point
2. Run cmd.exe (console) as Administrator
3. Run PowerShell. (you don't need to run it as Administrator 'couse you don't need to be admin to uninstall an app with PackageManager)
4. run
Code:
PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"
with admin console
5. If you don't encounter any error GOTO 8
6. If you encounter an error with some package, uninstall it: run in PowerShell:
Code:
Get-AppxPackage *PACKAGE_NAME_PART* | Remove-AppxPackage
I had problems with package MicrosoftOfficeHub, so I hat to run
Code:
Get-AppxPackage *MicrosoftOfficeHub* | Remove-AppxPackage
7. GOTO 4. I had proplems with packages Microsoft.CommsPhone and MicrosoftSolitaireCollection and had to uninstall them as well.
Code:
Get-AppxPackage *Microsoft.CommsPhone* | Remove-AppxPackage
Get-AppxPackage *MicrosoftSolitaireCollection* | Remove-AppxPackage
8. Now you have working Windows Store. But if you stop here windows will DELETE windows store and it's manifests soon. You will be unable to reinstall Windows Store and you will have to revert to a restore point you've created at step 1.
9. Open Windows Store and try to install some app. (you can remove it later with PowerShell). Windows will ask you for your Microsoft Account. Provide it.
10. It's OK, windows will not delete you Windows Store, but those idiots are just swiched you to emain login. remember that strong password you've typed on step 8? You will have to type it next type you login. So, if you don't want to type that STORNG password each tyme you login, do step 11.
11. Goto Settings > Accounts > Your account and select "sign in with local account". now you will have to relogin.
usefull links:
1. how to remove app with Power Shell and PackageManager
http://www.howtogeek.com/224798/how-...einstall-them/
2. how to reinstall uninstalled Windows Store (and any other uninstalled Windows Store app)
http://winaero.com/blog/how-to-resto...th-powershell/