Last active
March 5, 2019 05:56
-
-
Save Trucido/a30d7507c9bae62f49e0114a8a6af215 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove-Bloatware.ps1 | |
#Requires -Version 3 | |
#Requires -Modules Appx | |
#Requires -RunAsAdministrator | |
$ErrorActionPreference = 'Continue' | |
$VerbosePreference = 'Continue' | |
$apps = @( | |
# Default Windows 10 apps | |
"Microsoft.3DBuilder", | |
"Microsoft.Microsoft3DViewer", | |
"Microsoft.Advertising.Xaml", | |
"Microsoft.BioEnrollment", | |
"Microsoft.BingFinance", | |
"Microsoft.BingFoodAndDrink", | |
"Microsoft.BingHealthAndFitness", | |
"Microsoft.BingNews", | |
"Microsoft.BingSports", | |
"Microsoft.BingTranslator", | |
"Microsoft.BingTravel", | |
"Microsoft.BingWeather", | |
"Microsoft.CommsPhone", | |
"Microsoft.FreshPaint", | |
"Microsoft.GetHelp", | |
"Microsoft.Getstarted", | |
"Microsoft.HEIFImageExtension", | |
"Microsoft.Messaging", | |
"Microsoft.Microsoft3DViewer", | |
"Microsoft.MicrosoftOfficeHub", | |
"Microsoft.MicrosoftSolitaireCollection", | |
"Microsoft.MicrosoftStickyNotes", | |
"Microsoft.MixedReality.Portal", | |
"Microsoft.MSPaint", | |
"Microsoft.NetworkSpeedTest", | |
"Microsoft.Office.OneNote", | |
"Microsoft.Office.Sway", | |
"Microsoft.OneConnect", | |
"Microsoft.Windows.ParentalControls", | |
"Microsoft.People", | |
"Microsoft.PPIProjection", | |
"Microsoft.Print3D", | |
"Microsoft.Reader", | |
"Microsoft.RemoteDesktop", | |
"Microsoft.InkDraft", | |
"Microsoft.ScreenSketch", | |
"Microsoft.SkypeApp", | |
"Microsoft.SurfaceDiagnostics", | |
"Microsoft.SurfaceHub", | |
"Microsoft.VP9VideoExtensions", | |
"Microsoft.Wallet", | |
"Microsoft.WebMediaExtensions", | |
"Microsoft.WebpImageExtension", | |
"Microsoft.Windows.CapturePicker", | |
"Microsoft.Windows.HolographicFirstRun", | |
"Microsoft.Windows.NarratorQuickStart", | |
"Microsoft.Windows.Photos", | |
"Microsoft.WindowsAlarms", | |
"Microsoft.WindowsCamera", | |
"Microsoft.WindowsCalculator", | |
"microsoft.windowscommunicationsapps", | |
"Microsoft.WindowsFeedbackHub", | |
"Microsoft.WindowsMaps", | |
"Microsoft.WindowsReadingList" | |
"Microsoft.WindowsSoundRecorder", | |
"Microsoft.Xbox.TCUI", | |
"Microsoft.XboxApp", | |
"Microsoft.XboxGameCallableUI", | |
"Microsoft.XboxGameOverlay", | |
"Microsoft.XboxIdentityProvider", | |
"Microsoft.XboxSpeechToTextOverlay", | |
"Microsoft.YourPhone", | |
"Microsoft.ZuneMusic", | |
"Microsoft.ZuneVideo", | |
"Windows.ContactSupport", | |
# Apps by Third-Party Publishers | |
"26720RandomSaladGamesLLC.*", | |
"2FE3CB00.*", | |
"34791E63.*", | |
"46928bounde.*", | |
"4DF9E0F8.*", | |
"6Wunderkinder.*", | |
"828B5831.*", | |
"89006A2E.*", | |
"9E2F88E3.*", | |
"A278AB0D.*", | |
"AccuWeather.*", | |
"AD2F1837.*", | |
"ActiproSoftwareLLC.*", | |
"AdobeSystemsIncorporated.*", | |
"AMZNMobileLLC.*", | |
"Amazon.com.*", | |
"ClearChannelRadioDigital.*", | |
"CyberLinkCorp.*", | |
"D52A8D61.*", | |
"D5EA27B7.*", | |
"DB6EA5DB.*", | |
"DailymotionSA.*", | |
"DolbyLaboratories.*", | |
"Drawboard.*", | |
"eBayInc.*", | |
"Evernote.*", | |
"E046963F.*", | |
"E0469640.*", | |
"Facebook.*", | |
"flaregamesGmbH.*", | |
"Flipboard.*", | |
"GameGeneticsApps.*", | |
"GAMELOFTSA.*", | |
"GASPMobileGamesInc.*", | |
"GoogleInc.*", | |
"king.com.*", | |
"LenovoCorporation.*", | |
"McAfeeInc.*", | |
"PandoraMediaInc.*", | |
"Playtika.*", | |
"ShazamEntertainmentLtd.*", | |
"SlingTVLLC.*", | |
"SpotifyAB.*", | |
"SymantecCorporation.*", | |
"TelegraphMediaGroupLtd.*", | |
"TheNewYorkTimes.*", | |
"TuneIn.*", | |
"TripAdvisorLLC.*", | |
"Weather.*", | |
"Windows.ContactSupport", | |
"XeroxCorp.*", | |
"YouSendIt.*", | |
"ZinioLLC.*" | |
) | |
ForEach ($app in $apps) { | |
Write-Output "Removing $app..." | |
try { | |
Get-AppxPackage -Name $app | Remove-AppxPackage -Package {$_.PackageFullName} | |
} | |
catch { | |
if ($VerbosePreference -gt 'SilentlyContinue') { Write-Host $_.Exception.Message -ForegroundColor 'Red' }; | |
continue | |
} | |
} | |
# De-Provisioning Pre-Provisioned Bloatware | |
Write-Output "De-Provisioning Default Apps..." | |
$apps = @( | |
"*3DBuilder*", | |
"*AutodeskSketchBook*", | |
"*BioEnrollment*", | |
"*BingWeather*", | |
"*CapturePicker*", | |
"*GetHelp*", | |
"*Getstarted*", | |
"*HEIFImageExtension*", | |
"*NarratorQuickStart*", | |
"*Messaging*", | |
"*Microsoft3DViewer*", | |
"*MicrosoftOfficeHub*", | |
"*MicrosoftSolitaireCollection*", | |
"*MixedReality*", | |
"*MSPaint*", | |
"*Office.OneNote*", | |
"*OneConnect*", | |
"*ParentalControls*", | |
"*People*", | |
"*Photos*", | |
"*PPIProjection*", | |
"*Print3D*", | |
"*InkDraft*", | |
"*ScreenSketch*", | |
"*SkypeApp*", | |
"*MicrosoftStickyNotes*" | |
"*SurfaceDiagnostics*", | |
"*SurfaceHub*", | |
"*VP9VideoExtensions*", | |
"*Wallet*", | |
"*WebMediaExtensions*", | |
"*WebpImageExtension*", | |
"*WindowsAlarms*", | |
"*WindowsCalculator*", | |
"*WindowsCamera*", | |
"*windowscommunicationsapps*", | |
"*WindowsFeedbackHub*", | |
"*WindowsMaps*", | |
"*WindowsSoundRecorder*", | |
"*Xbox.TCUI*", | |
"*XboxApp*", | |
"*XboxGameCallableUI*", | |
"*XboxGameOverlay*", | |
"*XboxIdentityProvider*", | |
"*XboxSpeechToTextOverlay*", | |
"*YourPhone*", | |
"*ZuneMusic*", | |
"*ZuneVideo*" | |
) | |
ForEach ($app in $apps) { | |
Write-Output "De-Provisioning $app..." | |
try { | |
Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like $app} | Remove-AppxProvisionedPackage -PackageName {$_.PackageName} -Online | |
} | |
catch { | |
if ($VerbosePreference -gt 'SilentlyContinue') { Write-Host $_.Exception.Message -ForegroundColor 'Red' }; | |
continue | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment