PoshCode Logo PowerShell Code Repository

W10 Default Apps by Brian 10 months ago
embed code: <script type="text/javascript" src="http://PoshCode.org/embed/6369"></script>download | new post

deletes windows 10 bloatware and prevents Windows from installing them on additional users. Also inserts a registry line to stop the autodownloads like candycrush.

  1. # Removes un-needed apps from Windows 10.
  2. # To keep install of package insert hashtag before line, see example below:
  3. #Get-AppxPackage *3dbuilder* | Remove-AppxPackage
  4.  
  5. Get-AppxPackage *3dbuilder* | Remove-AppxPackage
  6. Get-AppxPackage *Appconnector* | Remove-AppxPackage
  7. Get-AppxPackage *BingFinance* | Remove-AppxPackage
  8. Get-AppxPackage *BingNews* | Remove-AppxPackage
  9. Get-AppxPackage *BingSports* | Remove-AppxPackage
  10. Get-AppxPackage *BingWeather* | Remove-AppxPackage
  11. Get-AppxPackage *CommsPhone* | Remove-AppxPackage
  12. Get-AppxPackage *ConnectivityStore* | Remove-AppxPackage
  13. Get-AppxPackage *Getstarted* | Remove-AppxPackage
  14. Get-AppxPackage *Messaging* | Remove-AppxPackage
  15. Get-AppxPackage *MicrosoftOfficeHub* | Remove-AppxPackage
  16. Get-AppxPackage *MicrosoftSolitaireCollection* | Remove-AppxPackage
  17. Get-AppxPackage *OneNote* | Remove-AppxPackage
  18. Get-AppxPackage *Sway* | Remove-AppxPackage
  19. Get-AppxPackage *people* | Remove-AppxPackage
  20. Get-AppxPackage *SkypeApp* | Remove-AppxPackage
  21. Get-AppxPackage *WindowsAlarms* | Remove-AppxPackage
  22. Get-AppxPackage *WindowsCamera* | Remove-AppxPackage
  23. Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
  24. Get-AppxPackage *WindowsDVDplayer* | Remove-AppxPackage
  25. Get-AppxPackage *WindowsMaps* | Remove-AppxPackage
  26. Get-AppxPackage *WindowsPhone* | Remove-AppxPackage
  27. Get-AppxPackage *WindowsSoundRecorder* | Remove-AppxPackage
  28. Get-AppxPackage *commsphone* | Remove-AppxPackage
  29. Get-AppxPackage *WindowsStore* | Remove-AppxPackage
  30. Get-AppxPackage *XboxApp* | Remove-AppxPackage
  31. Get-AppxPackage *ZuneMusic* | Remove-AppxPackage
  32. Get-AppxPackage *ZuneVideo* | Remove-AppxPackage
  33. Get-AppxPackage *xbox* | Remove-AppxPackage
  34. Get-AppxPackage *contactsupport* | Remove-AppxPackage
  35.  
  36. # Prevents the above apps from being installed onto new user accounts.
  37. # To allow install of package insert hashtag before line, see example below:
  38. #$Applist | WHere-Object {$_.packagename -like “*3DBuilder*”} | Remove-AppxProvisionedPackage -online
  39.  
  40. $Applist = Get-AppXProvisionedPackage -online
  41.  
  42. $Applist | WHere-Object {$_.packagename -like “*3DBuilder*”} | Remove-AppxProvisionedPackage -online
  43. $Applist | WHere-Object {$_.packagename -like “*Appconnector*”} | Remove-AppxProvisionedPackage -online
  44. $Applist | WHere-Object {$_.packagename -like “*BingFinance*”} | Remove-AppxProvisionedPackage -online
  45. $Applist | WHere-Object {$_.packagename -like “*BingNews*”} | Remove-AppxProvisionedPackage -online
  46. $Applist | WHere-Object {$_.packagename -like “*BingSports*”} | Remove-AppxProvisionedPackage -online
  47. $Applist | WHere-Object {$_.packagename -like “*BingWeather*”} | Remove-AppxProvisionedPackage -online
  48. $Applist | WHere-Object {$_.packagename -like “*CommsPhone*”} | Remove-AppxProvisionedPackage -online
  49. $Applist | WHere-Object {$_.packagename -like “*ConnectivityStore*”} | Remove-AppxProvisionedPackage -online
  50. $Applist | WHere-Object {$_.packagename -like “*Getstarted*”} | Remove-AppxProvisionedPackage -online
  51. $Applist | WHere-Object {$_.packagename -like “*Messaging*”} | Remove-AppxProvisionedPackage -online
  52. $Applist | WHere-Object {$_.packagename -like “*MicrosoftOfficeHub*”} | Remove-AppxProvisionedPackage -online
  53. $Applist | WHere-Object {$_.packagename -like “*MicrosoftSolitaireCollection*”} | Remove-AppxProvisionedPackage -online
  54. $Applist | WHere-Object {$_.packagename -like “*OneNote*”} | Remove-AppxProvisionedPackage -online
  55. $Applist | WHere-Object {$_.packagename -like “*Sway*”} | Remove-AppxProvisionedPackage -online
  56. $Applist | WHere-Object {$_.packagename -like “*People*”} | Remove-AppxProvisionedPackage -online
  57. $Applist | WHere-Object {$_.packagename -like “*SkypeApp*”} | Remove-AppxProvisionedPackage -online
  58. $Applist | WHere-Object {$_.packagename -like “*WindowsAlarms*”} | Remove-AppxProvisionedPackage -online
  59. $Applist | WHere-Object {$_.packagename -like “*WindowsCamera*”} | Remove-AppxProvisionedPackage -online
  60. $Applist | WHere-Object {$_.packagename -like “*windowscommunicationsapps*”} | Remove-AppxProvisionedPackage -online
  61. $Applist | WHere-Object {$_.packagename -like “*WindowsDVDplayer*”} | Remove-AppxProvisionedPackage -online
  62. $Applist | WHere-Object {$_.packagename -like “*WindowsMaps*”} | Remove-AppxProvisionedPackage -online
  63. $Applist | WHere-Object {$_.packagename -like “*WindowsPhone*”} | Remove-AppxProvisionedPackage -online
  64. $Applist | WHere-Object {$_.packagename -like “*WindowsSoundRecorder*”} | Remove-AppxProvisionedPackage -online
  65. $Applist | WHere-Object {$_.packagename -like “*WindowsStore*”} | Remove-AppxProvisionedPackage -online
  66. $Applist | WHere-Object {$_.packagename -like “*XboxApp*”} | Remove-AppxProvisionedPackage -online
  67. $Applist | WHere-Object {$_.packagename -like “*ZuneMusic*”} | Remove-AppxProvisionedPackage -online
  68. $Applist | WHere-Object {$_.packagename -like “*ZuneVideo*”} | Remove-AppxProvisionedPackage -online
  69. $Applist | WHere-Object {$_.packagename -like “*xbox*”} | Remove-AppxProvisionedPackage -online
  70. $Applist | WHere-Object {$_.packagename -like “*contact support*”} | Remove-AppxProvisionedPackage -online
  71.  
  72. # Blocks Windows 10 from auto downloading new apps to users by adding a line into the registry.
  73.  
  74. $RegKey = “HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent”
  75. if (-Not(Test-Path “$RegKey”)) {
  76. New-Item -Path “$($RegKey.TrimEnd($RegKey.Split(‘\’)[-1]))” -Name “$($RegKey.Split(‘\’)[-1])” -Force | Out-Null
  77. }
  78. New-ItemProperty -Path “$RegKey” -Name “DisableWindowsConsumerFeatures” -Value “1” -PropertyType "Dword"

Submit a correction or amendment below (
click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:


Remember me