Skip to content

Instantly share code, notes, and snippets.

@tkrotoff
Last active July 12, 2024 09:05
Show Gist options
  • Save tkrotoff/830231489af5c5818b15 to your computer and use it in GitHub Desktop.
Save tkrotoff/830231489af5c5818b15 to your computer and use it in GitHub Desktop.
Remove Windows 10 default apps
# See Remove default Apps from Windows 10 https://thomas.vanhoutte.be/miniblog/delete-windows-10-apps/
# See Debloat Windows 10 https://github.com/W4RH4WK/Debloat-Windows-10
# Command line to list all packages: Get-AppxPackage -AllUsers | Select Name, PackageFullName
Get-AppxPackage Microsoft.Windows.ParentalControls | Remove-AppxPackage
Get-AppxPackage Windows.ContactSupport | Remove-AppxPackage
Get-AppxPackage Microsoft.Xbox* | Remove-AppxPackage
Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage # Mail and Calendar
#Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsCamera | Remove-AppxPackage
Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage
Get-AppxPackage Microsoft.Zune* | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsPhone | Remove-AppxPackage # Phone Companion
Get-AppxPackage Microsoft.WindowsMaps | Remove-AppxPackage
Get-AppxPackage Microsoft.Office.OneNote | Remove-AppxPackage
Get-AppxPackage Microsoft.Office.Sway | Remove-AppxPackage
Get-AppxPackage Microsoft.Appconnector | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsFeedback* | Remove-AppxPackage
Get-AppxPackage Microsoft.Windows.FeatureOnDemand.InsiderHub | Remove-AppxPackage
Get-AppxPackage Microsoft.Windows.Cortana | Remove-AppxPackage
Get-AppxPackage Microsoft.People | Remove-AppxPackage
Get-AppxPackage Microsoft.Bing* | Remove-AppxPackage # Money, Sports, News, Finance and Weather
Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage
Get-AppxPackage Microsoft.MicrosoftOfficeHub | Remove-AppxPackage
Get-AppxPackage Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsSoundRecorder | Remove-AppxPackage
Get-AppxPackage Microsoft.3DBuilder | Remove-AppxPackage
Get-AppxPackage Microsoft.Messaging | Remove-AppxPackage
Get-AppxPackage Microsoft.CommsPhone | Remove-AppxPackage
Get-AppxPackage Microsoft.Advertising.Xaml | Remove-AppxPackage
Get-AppxPackage Microsoft.Windows.SecondaryTileExperience | Remove-AppxPackage
Get-AppxPackage Microsoft.Windows.ParentalControls | Remove-AppxPackage
Get-AppxPackage Microsoft.Windows.ContentDeliveryManager | Remove-AppxPackage
Get-AppxPackage Microsoft.Windows.CloudExperienceHost | Remove-AppxPackage
Get-AppxPackage Microsoft.Windows.ShellExperienceHost | Remove-AppxPackage
Get-AppxPackage Microsoft.BioEnrollment | Remove-AppxPackage
Get-AppxPackage Microsoft.OneConnect | Remove-AppxPackage
Get-AppxPackage *Twitter* | Remove-AppxPackage
Get-AppxPackage king.com.CandyCrushSodaSaga | Remove-AppxPackage
Get-AppxPackage flaregamesGmbH.RoyalRevolt2 | Remove-AppxPackage
Get-AppxPackage *Netflix | Remove-AppxPackage
Get-AppxPackage Facebook.Facebook | Remove-AppxPackage
Get-AppxPackage Microsoft.MinecraftUWP | Remove-AppxPackage
Get-AppxPackage *MarchofEmpires | Remove-AppxPackage
# See How to Completely Uninstall OneDrive in Windows 10 http://lifehacker.com/how-to-completely-uninstall-onedrive-in-windows-10-1725363532
taskkill /f /im OneDrive.exe
C:\Windows\SysWOW64\OneDriveSetup.exe /uninstall
@pchesels
Copy link

run:
Get-AppxPackage -allusers to remove the apps for all users.

@letme0ut
Copy link

letme0ut commented Jan 24, 2019

which package i need to delete to don't have games

Bubble Witch, Candy Crush ...

@yuvarajoo
Copy link

Hi, can use app below. Portable and easy.

http://www.techworked.com/windows-apps-remover/

@havokator
Copy link

havokator commented Sep 1, 2022

Get-AppxPackage Microsoft.Wallet -AllUsers | Remove-AppxPackage

@WiFiF
Copy link

WiFiF commented Mar 3, 2023

I can use :
Get-ProvisionedAppxPackage -Online
and
Remove-ProvisionedAppxPackage -Online -AllUsers

This removes even for a future new user. It takes away from the image directly.

Remove-ProvisionedAppx.ps1 :

<#
.SYNOPSIS
Script to remove provisioned apps on Windows
.DESCRIPTION
The script retrieves the list of applications from a text file.
This text file has one line per application to process and can be easily edited in a text editor.

Please use PowerShell version greater than or equal to 5.1
.PARAMETER FilePath
File path of the list of applications to remove.
.OUTPUTS
Remove-ProvisionedAppx.ps1 displays the list of applications present in the file with, for the one existing on the computer, a deletion return.
.EXAMPLE
PS > .\Remove-ProvisionedAppx.ps1
By default the script will look for a file named "ListRemoveAppx.ini" in the same location as the script.
.EXAMPLE
PS > .\Remove-ProvisionedAppx.ps1 -FilePath \\domain.fr\sysvol\domain.fr\scripts\ListRemoveAppx.ini
We specify that the file to be processed is located at the location "\\domain.fr\sysvol\domain.fr\scripts\ListRemoveAppx.ini".

#>
param(
    [string]$FilePath
)

if(!$FilePath){
	# Location of the list of applications to remove
	$Path = Split-Path $MyInvocation.MyCommand.Path -Parent
	# List file name
	$File = "ListRemoveAppx.ini"
	# Full file path
	$FilePath = $Path+"\"+$File
}


# Recovery of applications to be removed
# The list can be modified by addition/removal in the target file
$liste = Get-Content $FilePath

# Processing to exclude empty rows. If we continue without removing the empty lines, we delete all the provisioned applications
$liste = $liste | Where-Object{$_ -notlike ""}

# Line by line processing
foreach($app in $liste){
	# Application name display
	Write-Host -Object "====> $app" -ForegroundColor DarkCyan
	# We are looking for the application whose name matches
	$AppProvis = Get-ProvisionedAppxPackage -Online | Where-Object {
		$_.PackageName -like "*$app*"
	}
	# Deleting the Provisioned Application
	$AppProvis | Remove-ProvisionedAppxPackage -Online -AllUsers | Select-Object *
}

ListRemoveAppx.ini :

*MarchofEmpires
*Netflix
*Twitter*
7EE7776C.LinkedInforWindows
Facebook.Facebook
Microsoft.3DBuilder
Microsoft.549981C3F5F10
Microsoft.Advertising.Xaml
Microsoft.Appconnector
Microsoft.Bing*
Microsoft.BioEnrollment
Microsoft.CommsPhone
Microsoft.GetHelp
Microsoft.Getstarted
Microsoft.HEIFImageExtension
Microsoft.Messaging
Microsoft.Microsoft3DViewer
Microsoft.MicrosoftOfficeHub
Microsoft.MicrosoftSolitaireCollection
Microsoft.MicrosoftStickyNotes
Microsoft.MinecraftUWP
Microsoft.MixedReality.Portal
Microsoft.Office.OneNote
Microsoft.Office.Sway
Microsoft.OneConnect
Microsoft.People
Microsoft.Print3D
Microsoft.ScreenSketch
Microsoft.SkypeApp
Microsoft.StorePurchaseApp
Microsoft.VP9VideoExtensions
Microsoft.Wallet
Microsoft.WebMediaExtensions
Microsoft.WebpImageExtension
Microsoft.Windows.CloudExperienceHost
Microsoft.Windows.ContentDeliveryManager
Microsoft.Windows.Cortana
Microsoft.Windows.FeatureOnDemand.InsiderHub
Microsoft.Windows.ParentalControls
Microsoft.Windows.SecondaryTileExperience
Microsoft.Windows.ShellExperienceHost
Microsoft.WindowsAlarms
Microsoft.WindowsCamera
Microsoft.WindowsFeedback*
Microsoft.WindowsMaps
Microsoft.WindowsPhone
Microsoft.WindowsSoundRecorder
Microsoft.Xbox*
Microsoft.YourPhone
Microsoft.Zune*
Windows.ContactSupport
flaregamesGmbH.RoyalRevolt2
king.com.CandyCrushSodaSaga
Microsoft.windowscommunicationsapps

@tmeckel
Copy link

tmeckel commented Jul 12, 2024

@WiFiF THIS really made me happy 👍

Get-ProvisionedAppxPackage -Online
and
Remove-ProvisionedAppxPackage -Online -AllUsers

Finally I get rid of these pesky packages that bristle to get uninstalled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment