||2 months ago|
|LICENSE||2 months ago|
|README.md||2 months ago|
|remove-apps.ps1||2 months ago|
Remove Default Apps
This script makes it simple to remove unnecessary Microsoft, OEM, and third-party modern app packages (APPX) which are typically preinstalled and part of an OS image.
There are two different means of removing packages:
Remove-AppxPackageuninstalls packages installed for the current user.
Remove-AppxProvisionedPackage -Onlineuninstalls staged packages - these packages are automatically deployed every time a new user profile is created.
Be careful removing staged packages. It's typically possible to redownload these packages from the Microsoft Store, but this isn't a given for every package. Windows prevents uninstalling core system packages, so you can't render your Windows installation unusable by accidentally removing a staged package, but it's always best practice to assess every package presented by the script.
$appcsv variable contains a single, multiline, comma-delimited string. By default, this list only includes Microsoft packages.
There are three fields:
- name - The display name for the package. This is typically a dot-separated string, such as
- id - The Store ID for the package. If you use this script to reinstall previously-uninstalled packages, you need this ID to find the package in the Store. This ID may be obtained by finding the app in the Microsoft Store through a web browser. The ID is part of the URL for the app listing:
- skip - A Boolean value; if true, the script will bypass this package, leaving it intact.
$appcsv to add packages for removal, and to flag packages to be skipped the next time you run the app. You can also edit the boolean value after starting the script; look at the contents
$applist while running the script.