Thursday, January 29, 2015

Deleting Metro Apps for all users in Windows 8.1

If you get OEM machines, you may get a bunch of applications preinstalled.  The normal applications can be removed from Add/Remove programs.  Some, specifically from the store or ‘Metro Apps’ can only be uninstalled per user.  Creating a new user will reinstall the applications.  To delete these, you will need to user Powershell.
The following code will remove the any provisioned application that has the name *evernote*, so it will no longer be installed for any new user.  It will also uninstall it for the current logged on user.  It will NOT uninstall it for any other user accounts.  This will need to be run as administrator:

$AppsToDelete="*evernote*" 
Foreach ($AppName in $AppsToDelete)
{
    get-appxprovisionedpackage -online | where packagename -like $AppName | remove-appxprovisionedpackage -Online
    Get-AppxPackage -name $AppName -allusers | Remove-AppxPackage
}

You can also use the variable $AppsToDelete as an array, and delete multiple (This will delete applcations with the following in the name:  Evernote, Accuweather, Kindle, Companion, Quickcast, LenonoSupport, LenovoSettings, Symantec, YouSendIt, Zinio:

$AppsToDelete="*evernote*","*accuweather*","*Kindle*","*companion*","*Quickcast*","*LenovoSupport*","*LenovoSettings*","*Symantec*","*YouSendIt*","*Zinio*"
Foreach ($AppName in $AppsToDelete)
{
    get-appxprovisionedpackage -online | where packagename -like $AppName | remove-appxprovisionedpackage -Online
    Get-AppxPackage -name $AppName -allusers | Remove-AppxPackage
}

Once major problem is it wont uninstall the application for users that have already had a profile created, and the application installed for them.  They will need to uninstall the application individually.

Source:
http://www.softwareok.com/?seite=faq-Windows-8&faq=60

No comments:

Post a Comment