Working with apps

One of the most frequently asked questions for Windows 10 is how to uninstall specific applications. The following cmdlets allow you to work with Universal Windows Platform (UWP) apps, for example finding and removing them. Have a dedicated look at the difference between Get-AppxPackage and Get-AppxProvisionedPackage. Each time a new user logs in and creates a new user profile, all the provisioned AppxPackages will be installed in the user context. Each user can therefore have a different number of AppxPackages:

#Retrieve Apps examples
Get-AppxPackage | Select-Object Name, PackageFullName

#Retrieving and removing
Get-AppxPackage *3dbuilder* | Remove-AppxPackage -WhatIf
Get-AppxPackage -AllUsers | Remove-AppxPackage -WhatIf
Get-AppxPackage | where-object {$_.name –notlike "*store*"} | Remove-AppxPackage

#Retrieve provisioned apps
Get-ProvisionedAppxPackage -Online

#Removing a specific provisioned app
Remove-AppxProvisionedPackage -Path c:offline -PackageName MyAppxPkg

#Reregistering Windows Store apps
Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)AppXManifest.xml"}

#Reregistering all apps
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)AppXManifest.xml"}

Although creating scripts by yourself and removing the apps, either from the image or for every user profile, might work, it is recommended to use the script that is officially provided by Michael Niehaus: https://blogs.technet.microsoft.com/mniehaus/2016/08/23/windows-10-1607-keeping-apps-from-coming-back-when-deploying-the-feature-update/.

In addition, you must pay attention to the apps that should not be removed. Microsoft provides a dedicated list for all available apps, and it is recommended not to remove system apps: https://docs.microsoft.com/en-us/windows/application-management/apps-in-windows-10.

If you still want to disable any of those apps, you should make use of AppLocker instead.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset