This script shows how to broken Windows Store apps with a black X mark in Windows 8.1.
Some users find that there are some Windows Apps broken with black X when they update Window 8 to Windows 8.1. This script is try to solve this problem.
Step 1: Right click the script and select Run with PowerShell.
Step 2: Some steps need to be completed manually (where needed).
Then it will show the registry editor dialog and it has located the registry file. What you need do is to right click Package and select permission.
After that select Advanced and change the owner to SYSTEM
Then if everything is finished, you can return to PowerShell console and input Y to continue the script execution. After finishing all these steps, you need to restart the computer.
Note: This script solution is collected by Microsoft forum. You can ask for help on http://social.technet.microsoft.com/Forums/ if the problem is still not solved.
Here are some code snippets for your reference.
try
{
Powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\WinStore\AppxManifest.xml
((Get-ChildItem "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications") | Get-ItemProperty).Path | Add-AppxPackage -Register -DisableDevelopmentMode
Write-Host "Operation is done. Restart the computer and you can visit 'http://social.technet.microsoft.com/Forums/' asking for help if the problem is not solved."
Restart-Computer -Confirm:$true
}
Catch
{
Write-Error $_
}
try
{
Powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\WinStore\AppxManifest.xml
((Get-ChildItem "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications") | Get-ItemProperty).Path | Add-AppxPackage -Register -DisableDevelopmentMode
Write-Host "Operation is done. Restart the computer and you can visit 'http://social.technet.microsoft.com/Forums/' asking for help if the problem is not solved."
Restart-Computer -Confirm:$true
}
Catch
{
Write-Error $_
}
Prerequisite
Windows 8.1
Microsoft All-In-One Script Framework is an automation script sample library for IT Professionals. The key value that All-In-One Script Framework is trying to deliver is Scenario-Focused Script Samples driven by IT Pros' real-world pains and needs. The team is monitoring all TechNet forums, IT Pros' support calls to Microsoft, and script requests submitted to TechNet Script Repository. We collect frequently asked IT scenarios, and create script samples to automate the tasks and save some time for IT Pros. The team of All-In-One Script Framework sincerely hope that these customer-driven automation script samples can help our IT community in this script-centric move.