-
-
Save chemputer/c61ab0abbbf9cfadd69a1994ca7b029f to your computer and use it in GitHub Desktop.
Powershell script to remove junk apps bundled in 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
############################################################ | |
# Powershell script to remove shit features bundled in Windows 10 | |
# Removes junk bundled with Windows 10 | |
# App list: https://www.howtogeek.com/224798/how-to-uninstall-windows-10s-built-in-apps-and-how-to-reinstall-them/ | |
# King shit: https://care.king.com/en/candy-crush-soda-saga/how-to-remove-candy-crush-soda-saga-from-windows-10-with-a-powershell-command | |
# Author: Joshua Haupt [email protected] Date: 19.12.2017 | |
# Original gist: https://gist.github.com/HauptJ/e09a8b7e699115f8f35e699a09816da2 | |
# Author: Ben Turner [email protected] 10.22.2019 | |
# Added ability to remove Hidden City and Disable "Consumer Experience", removed the line that removed the "people" | |
# app, as it failed due to being a system app. | |
# MSProtection.ps1 https://gist.github.com/chemputer/889df0b96d88dd6d8843f28bcb13656f | |
############################################################ | |
#MSProtection.ps1 | |
$error.clear() | |
try { | |
New-Item -path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Force | New-ItemProperty -Name "DisableWindowsConsumerFeatures" -Value "1" -PropertyType "DWORD" | |
} | |
catch { "Error occured" } | |
if ($error) { | |
Set-Itemproperty -path HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent -Name 'DisableWindowsConsumerFeatures' -value '1' | |
} | |
#End MSProtection.ps1 | |
# Remove HiddenCity | |
Write-Host "Removing HiddenCity" | |
Get-AppxPackage *HiddenCity* | Remove-AppxPackage | |
# Remove Get Started | |
Write-Host "Removing Get Started" | |
Get-AppxPackage *getstarted* | Remove-AppxPackage | |
# Remove Windows Phone Companion | |
Write-Host "Removing Windows Phone Companion" | |
Get-AppxPackage *windowsphone* | Remove-AppxPackage | |
# Remove Xbox | |
Write-Host "Removing Xbox App" | |
Get-AppxPackage *xboxapp* | Remove-AppxPackage | |
# Remove 3D Builder | |
Write-Host "Removing 3D Builder" | |
Get-AppxPackage *3dbuilder* | Remove-AppxPackage | |
# Remove Photos | |
Write-Host "Removing Photos" | |
Get-AppxPackage *photos* | Remove-AppxPackage | |
# Remove Camera | |
Write-Host "Removing Camera" | |
Get-AppxPackage *windowscamera* | Remove-AppxPackage | |
# Remove Voice Recorder | |
Write-Host "Removing Voice Recorder" | |
Get-AppxPackage *soundrecorder* | Remove-AppxPackage | |
# Remove Calendar and Mail | |
Write-Host "Removing Calendar and Mail" | |
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage | |
# Remove Alarms and Clock | |
Write-Host "Removing Alarms and Clock" | |
Get-AppxPackage *windowsalarms* | Remove-AppxPackage | |
# Remove King Shit | |
Write-Host "Removing King Shit" | |
Get-AppxPackage *king.com* | Remove-AppxPackage | |
# Remove Get Office | |
Write-Host "Get Office" | |
Get-AppxPackage *officehub* | Remove-AppxPackage | |
# Remove OneNote | |
Write-Host "Removing OneNote" | |
Get-AppxPackage *onenote* | Remove-AppxPackage | |
# Remove Bing Maps | |
Write-Host "Removing Bing Maps" | |
Get-AppxPackage *windowsmaps* | Remove-AppxPackage | |
# Remove Bing Finance / Money | |
Write-Host "Removing Bing Finance / Money" | |
Get-AppxPackage *bingfinance* | Remove-AppxPackage | |
# Remove Zune / Windows Video | |
Write-Host "Removing Zune / Windows Video" | |
Get-AppxPackage *zunevideo* | Remove-AppxPackage | |
# Remove Zune / Windows Video | |
Write-Host "Removing Zune / Groove Music" | |
Get-AppxPackage *zunemusic* | Remove-AppxPackage | |
# Remove Solitaire | |
Write-Host "Removing Solitaire" | |
Get-AppxPackage *solitairecollection* | Remove-AppxPackage | |
# Remove Bing Sports | |
Write-Host "Removing Bing Sports" | |
Get-AppxPackage *bingsports* | Remove-AppxPackage | |
# Remove Bing News | |
Write-Host "Removing Bing News" | |
Get-AppxPackage *bingnews* | Remove-AppxPackage | |
# Remove Bing Weather | |
Write-Host "Removing Bing Weather" | |
Get-AppxPackage *bingweather* | Remove-AppxPackage | |
# Remove Skype App | |
Write-Host '"Removing Skype App"' | |
Get-AppxPackage *skypeapp* | Remove-AppxPackage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment