Home > Computers and Internet > PowerShell Management of Built-In Modern Apps

PowerShell Management of Built-In Modern Apps

December 23, 2015 Leave a comment Go to comments

The built-in Modern Apps that came with Windows 10 can’t be uninstalled easily.  However you can uninstall and reinstall these apps via PowerShell session.

Notes:

  • Uninstalling Modern Apps that don’t work / got corrupted for some reason cannot be repaired by uninstalling and then reinstalling them.  If an app isn’t already working before you uninstall it, then it will still not work after reinstalling it – at least, that’s from my experience.
  • Actions done to uninstall and then reinstall Modern Apps in one user profile account don’t impact other user profile accounts.  In other words, the scope of the PowerShell commands used was just for the currently signed-in user.

The command to list all Modern Apps installed for a user profile account is as follows.

get-appxpackage | select name, packagefullname

The key command here is get-appxpackage; you pipe the output of this command into a readable format just listing the name and full package name of all apps in a user profile account.

Obtain the exact package name of the Modern App first.  Examples:

Microsoft.WindowsStore

Microsoft.WindowsStore_2015.23.23.0_x64__8wekyb3d8bbwe

Microsoft.Windows.Photos

Microsoft.Windows.Photos_15.1208.10480.0_x64__8wekyb3d8bbwe

Built-in Modern Apps cannot be uninstalled from the Settings > System > Apps & features section, so the only way to remove it is through PowerShell.  The command to uninstall a particular Modern app is as follows; the full package name needs to be specified as in the example here that removes the Photos app.

Remove-AppxPackage Microsoft.Windows.Photos_15.1208.10480.0_x64__8wekyb3d8bbwe

The command to reinstall a Modern App is as follows; the full package name needs to be specified, as well as a few other parameters needed.

Add-AppxPackage -register “C:\Program Files\WindowsApps\[PackageFullName]\appxmanifest.xml” -DisableDevelopmentMode

Note that this is the location of the app’s manifest file that describes the package to be installed.

C:\Program Files\WindowsApps\[PackageFullName]\appxmanifest.xml

The following is an example to reinstall the Photos app:

Add-AppxPackage -register “C:\Program Files\WindowsApps\Microsoft.Windows.Photos_15.1208.10480.0_x64__8wekyb3d8bbwe\appxmanifest.xml” -DisableDevelopmentMode

 

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: