Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. # Description:
  2. # This script removes unwanted Apps that come with Windows. If you do not want
  3. # to remove certain Apps comment out the corresponding lines below.
  4.  
  5. Import-Module -DisableNameChecking $PSScriptRoot\..\lib\take-own.psm1
  6.  
  7. echo "Elevating priviledges for this process"
  8. do {} until (Elevate-Privileges SeTakeOwnershipPrivilege)
  9.  
  10. echo "Uninstalling default apps"
  11. $apps = @(
  12. # default Windows 10 apps
  13. "Microsoft.3DBuilder"
  14. "Microsoft.Appconnector"
  15. "Microsoft.BingFinance"
  16. "Microsoft.BingNews"
  17. "Microsoft.BingSports"
  18. "Microsoft.BingWeather"
  19. "Microsoft.Getstarted"
  20. "Microsoft.MicrosoftOfficeHub"
  21. "Microsoft.MicrosoftSolitaireCollection"
  22. "Microsoft.MicrosoftStickyNotes"
  23. "Microsoft.Office.OneNote"
  24. "Microsoft.OneConnect"
  25. "Microsoft.People"
  26. "Microsoft.SkypeApp"
  27. "Microsoft.Windows.Photos"
  28. "Microsoft.WindowsAlarms"
  29. #"Microsoft.WindowsCalculator"
  30. "Microsoft.WindowsCamera"
  31. "Microsoft.WindowsMaps"
  32. "Microsoft.WindowsPhone"
  33. "Microsoft.WindowsSoundRecorder"
  34. #"Microsoft.WindowsStore"
  35. "Microsoft.XboxApp"
  36. "Microsoft.ZuneMusic"
  37. "Microsoft.ZuneVideo"
  38. "microsoft.windowscommunicationsapps"
  39. "Microsoft.MinecraftUWP"
  40.  
  41. # Threshold 2 apps
  42. "Microsoft.CommsPhone"
  43. "Microsoft.ConnectivityStore"
  44. "Microsoft.Messaging"
  45. "Microsoft.Office.Sway"
  46.  
  47. # non-Microsoft
  48. "9E2F88E3.Twitter"
  49. "ClearChannelRadioDigital.iHeartRadio"
  50. "Flipboard.Flipboard"
  51. "king.com.*"
  52. "king.com.CandyCrushSaga"
  53. "king.com.CandyCrushSodaSaga"
  54. "ShazamEntertainmentLtd.Shazam"
  55. "TheNewYorkTimes.NYTCrossword"
  56.  
  57.  
  58. # apps which cannot be removed using Remove-AppxPackage
  59. #"Microsoft.BioEnrollment"
  60. #"Microsoft.MicrosoftEdge"
  61. #"Microsoft.Windows.Cortana"
  62. #"Microsoft.WindowsFeedback"
  63. #"Microsoft.XboxGameCallableUI"
  64. #"Microsoft.XboxIdentityProvider"
  65. #"Windows.ContactSupport"
  66. )
  67.  
  68. foreach ($app in $apps) {
  69. Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
  70.  
  71. Get-AppXProvisionedPackage -Online |
  72. where DisplayName -EQ $app |
  73. Remove-AppxProvisionedPackage -Online
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement