I'm having the same problem and it has to re deploy the packages using the power shell script but after a restart the problem come's back :-(
Is there a way to permanently fix this issue this issue?
the issuie is tied to me runnning ccleaner or free registry defrag.
I did a fresh install ran those programs and the problem came up I then reformatted and did the same thing and verified one of these two programs caused this issues.
As you can imagine I would like to find the cause and repair it is there some way I can take a before and after registry image and compare the two in an easy way to find the problem or offending keys causing the problem?
I'm using the same power shell script above but I made it start up in a admin window using some trickery in the script but I have to run it every time I start windows or the start menu and all the metro apps don't work.
I had to enable execution of scripts from power shell but it automatically fixes my problem on boot now.
function IsAdministrator
{
$Identity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$Principal = New-Object System.Security.Principal.WindowsPrincipal($Identity)
$Principal.IsInRole([System.Security.Principal.WindowsBuiltInRole]::Administrator)
}
function IsUacEnabled
{
(Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System).EnableLua -ne 0
}
#
#
if (!(IsAdministrator))
{
if (IsUacEnabled)
{
[string[]]$argList = @('-NoProfile', '-NoExit', '-File', $MyInvocation.MyCommand.Path)
$argList += $MyInvocation.BoundParameters.GetEnumerator() | Foreach {"-$($_.Key)", "$($_.Value)"}
$argList += $MyInvocation.UnboundArguments
Start-Process PowerShell.exe -Verb Runas -WorkingDirectory $pwd -ArgumentList $argList
return
}
else
{
throw "You must be administrator to run this script"
}
}
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
exit