Remove and repair necrotic applications in Win8 Metro with PowerShell

  
        After using the Sina Weibo application in Win8, Xiaobian suddenly encountered a problem. The Sina Weibo application of the interface suddenly turned into a solid color button. Sina Weibo was also lost in all applications. The original location became a name. For the application of APP. After opening, I entered the store.
In this case, the program is equal to necrosis, the delete option is not found, and the Windows 8 Metro application has no management options. It is useless to reinstall the Sina Weibo app in the app store. Although there is an installation process, there is no prompt to install successfully. The start menu is still the same.
In this case, the application can not be deleted and can not be reinstalled, the solution is as follows:
Start screen: All programs, find Windows PowerShell open

Knock in Get-AppxPackage Enter it Ability to return all (current user?!) installed Metro package information

Find a Metro application that you want to uninstall, such as Sina Weibo:

Name : sina.51561FF0E3531
Publisher : CN =3B1B7377-362C-4E39-A7C0-F96FAA466AC7
Architecture: Neutral
ResourceId :
Version : 1.0.2.19
PackageFullName : sina.51561FF0E3531_1.0.2.19_neutral__zgahqmgng3xt6
InstallLocation : C:\\Program Files\\WindowsAPPS\\sina.51561FF0E3531_1.0.2.19_neutral__zgahqmgng3xt6
IsFramework : False
PackageFamilyName : sina.51561FF0E3531_zgahqmgng3xt6
PublisherId : zgahqmgng3xt6
Make a note of the PackageFullName item above in the console, which is the bottom:
PS C:\\Users\\username>
Type:Remove-AppxPackage <PackageFullName you want to uninstall>
For example, my Sina Weibo is like this:
Remove-App xPackage sina.51561FF0E3531_1.0.2.19_neutral__zgahqmgng3xt6
Prompt deployment operation
disappeared if the wood has returned errors, then just
Go back to the app store to install the application, you can.
Note:
Remove-AppxPackage The PackageFullName item that is connected later is case-sensitive, and some of the underscores are connected to two, not one, so it is best to use Ctrl + C to copy, right click directly Paste to avoid errors. (If the error occurs, it is usually an input error)
PS: If the reinstallation is successful, the start interface still does not appear, go to all programs to search for the application, then open, you can restore the original button, which is estimated to be a cache problem
In addition, if you delete the application directly in the Windows app folder, it can not be reinstalled, you can also use this method to solve.

Copyright © Windows knowledge All Rights Reserved