powershell
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml” -Verbose}
The Applications event log is full of ESENT errors about a TileRepository being damaged and it can’t repair it, so I took backup and then deleted all files in C:\users\{username}\appdata\local\TileDataLayer\Database. Reboot and everything works fine again BUT you will lose your customisations and will be left with a blank start menu.
Other command: PowerShell -ExecutionPolicy Unrestricted -Command “& {$manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + ‘\AppxManifest.xml’ ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}”