Wednesday, November 20, 2013

Restore Windows 8 or Windows 8.1 builtin Metro apps after recreating user profile

When a user (either domain or local) logs in to a Windows 8/8.1 PC his profile is created, and bundled Metro apps (most importantly Store and PC settings) are installed to his profile.

If the profile gets corrupter or for whatever other reason recreated, the apps can no longer be started, and various troubleshooters and/or permissions fixes do not help. Errors similar to this can be found in the event log:

Activation of app windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel failed with error: This app does not support the contract specified or is not installed. See the Microsoft-Windows-TWinUI/Operational log for additional information.

The three applications that are deeply integrated and cannot be removed from Windows (and hence, cannot be reinstalled trough Store) can be recovered by typing the following into elevated administrative command prompt:

powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\WinStore\AppxManifest.xml
powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\ImmersiveControlPanel\AppxManifest.xml
powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\FileManager\AppxManifest.xml
powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\Camera\AppxManifest.xml

4 comments:

Unknown said...

Very helpful article. I've already read through some technet forums without getting clever of them. Nothing helped me. Then I found this article and it helped me out! Many thanks to the author.

Unknown said...

Wow, thanks so much. I screwed up my apps when moving my AppData off the C drive. This fixed the problem with the Metro Apps.

Namit said...

Very helpful article. Thanks a lot

Unknown said...
This comment has been removed by a blog administrator.