Last active
January 3, 2018 19:32
-
-
Save sunscan/a11f391e51d663c64caa5a8d2ed87fd2 to your computer and use it in GitHub Desktop.
Remove unwanted apps from Windows 10
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
# This script removes unwanted apps installed by default with Windows 10. | |
# Modified from: https://github.com/W4RH4WK/Debloat-Windows-10 | |
# | |
# To execute from an administrator powershell: | |
# (New-Object System.Net.WebClient).DownloadString("https://gist.githubusercontent.com/sunscan/a11f391e51d663c64caa5a8d2ed87fd2/raw/win10_remove_unwanted_apps.ps1") | powershell -command - | |
function force-mkdir($path) { | |
if (!(Test-Path $path)) { | |
New-Item -ItemType Directory -Force -Path $path | |
} | |
} | |
Write-Output "Uninstalling default apps" | |
$apps = @( | |
# Microsoft | |
"Microsoft.3DBuilder" | |
"Microsoft.Appconnector" | |
"Microsoft.BingFinance" | |
"Microsoft.BingSports" | |
"Microsoft.Getstarted" | |
"Microsoft.MicrosoftOfficeHub" | |
"Microsoft.MSPaint" | |
"Microsoft.Office.OneNote" | |
"Microsoft.People" | |
"Microsoft.Print3D" | |
"Microsoft.SkypeApp" | |
"Microsoft.Wallet" | |
"Microsoft.WindowsAlarms" | |
"Microsoft.WindowsCamera" | |
"Microsoft.WindowsMaps" | |
"Microsoft.WindowsPhone" | |
"Microsoft.WindowsSoundRecorder" | |
"Microsoft.XboxApp" | |
"Microsoft.ZuneMusic" | |
"Microsoft.ZuneVideo" | |
"microsoft.windowscommunicationsapps" | |
"Microsoft.MinecraftUWP" | |
"Microsoft.MicrosoftPowerBIForWindows" | |
"Microsoft.NetworkSpeedTest" | |
"Microsoft.XboxGameOverlay" | |
"Microsoft.XboxIdentityProvider" | |
"Microsoft.XboxSpeechToTextOverlay" | |
"Microsoft.Xbox.TCUI" | |
# threshold 2 apps | |
"Microsoft.CommsPhone" | |
"Microsoft.ConnectivityStore" | |
"Microsoft.Messaging" | |
"Microsoft.Office.Sway" | |
"Microsoft.OneConnect" | |
"Microsoft.WindowsFeedbackHub" | |
# non-Microsoft | |
#"*MarchofEmpires*" | |
"26720RandomSaladGamesLLC.SimpleSolitaire" | |
"4DF9E0F8.Netflix" | |
"5A894077.McAfeeSecurity" | |
"89006A2E.AutodeskSketchBook" | |
"9E2F88E3.Twitter" | |
"AD2F1837.HPJumpStart" | |
"Amazon.com.Amazon" | |
"CAF9E577.Plex" | |
"Flipboard.Flipboard" | |
"GAMELOFTSA.Asphalt8Airborne" | |
"KeeperSecurityInc.Keeper" | |
#"king.com.*" | |
"RivetNetworks.SmartByte" | |
"ShazamEntertainmentLtd.Shazam" | |
"WavesAudio.WavesMaxxAudioProforDell" | |
) | |
foreach ($app in $apps) { | |
Write-Output "Trying to remove $app" | |
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers | |
Get-AppXProvisionedPackage -Online | | |
Where-Object DisplayName -EQ $app | | |
Remove-AppxProvisionedPackage -Online | |
} | |
#Get-AppxPackage -AllUsers | % { if($_.Name -in $apps){ Remove-AppxPackage -AllUsers } } | |
#Get-AppxProvisionedPackage -Online | % { if($_.DisplayName -in $apps){ Remove-AppxProvisionedPackage -Online } } | |
# Prevents "Suggested Applications" returning | |
force-mkdir "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Cloud Content" | |
Set-ItemProperty "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Cloud Content" "DisableWindowsConsumerFeatures" 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment