Πέμπτη 30 Ιανουαρίου 2020

How to Remove All Built-in Apps in Windows 10

Use following commands in a powershell admin console or script with admin rights:
  • to uninstall all built-in apps for all user accounts: 
Get-AppxPackage -AllUsers | Remove-AppxPackage 
  • to prevent apps from installing for new users we need to remove Provisioned Packages:
Import-Module Appx
Import-Module Dism
Get-AppXProvisionedPackage -online  | Remove-AppxProvisionedPackage -online

*Note 1

Run the following command to allow scripts to run.
Set-ExecutionPolicy Unrestricted
After you have finished set it back using the below command.
Set-ExecutionPolicy Restricted

**Note 2

Unistalling  built-in apps for all users seems to make sysprep fail. To fox the syspep problem use the above code to remove Appx Provisioned Packages.
For more details see:
Links

Extra---Reinstall any App you remove

Example of restore Windows Store only
Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Example of restore Calc application only
Get-AppxPackage -allusers *calc* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

Other Tools-Scripts which remove Built-in Apps in Windows 10