This repository has been archived by the owner on Aug 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Windows10Cleanup.ps1
81 lines (73 loc) · 2.23 KB
/
Windows10Cleanup.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Write-Output -InputObject 'Uninstalling default apps'
$apps = @(
# default Windows 10 apps
'Microsoft.3DBuilder'
'Microsoft.Appconnector'
'Microsoft.BingFinance'
'Microsoft.BingNews'
'Microsoft.BingSports'
'Microsoft.BingWeather'
'Microsoft.FreshPaint'
'Microsoft.Getstarted'
'Microsoft.MicrosoftOfficeHub'
'Microsoft.MicrosoftSolitaireCollection'
'Microsoft.MicrosoftStickyNotes'
'Microsoft.Office.OneNote'
'Microsoft.OneConnect'
'Microsoft.People'
'Microsoft.SkypeApp'
'Microsoft.Windows.Photos'
'Microsoft.WindowsAlarms'
'Microsoft.WindowsCalculator'
'Microsoft.WindowsCamera'
'Microsoft.WindowsMaps'
'Microsoft.WindowsPhone'
'Microsoft.WindowsSoundRecorder'
'Microsoft.WindowsStore'
'Microsoft.XboxApp'
'Microsoft.ZuneMusic'
'Microsoft.ZuneVideo'
'microsoft.windowscommunicationsapps'
'Microsoft.MinecraftUWP'
# Threshold 2 apps
'Microsoft.CommsPhone'
'Microsoft.ConnectivityStore'
'Microsoft.Messaging'
'Microsoft.Office.Sway'
#Redstone apps
'Microsoft.BingFoodAndDrink'
'Microsoft.BingTravel'
'Microsoft.BingHealthAndFitness'
'Microsoft.WindowsReadingList'
# non-Microsoft
'9E2F88E3.Twitter'
'Flipboard.Flipboard'
'ShazamEntertainmentLtd.Shazam'
'king.com.CandyCrushSaga'
'king.com.CandyCrushSodaSaga'
'king.com.*'
'ClearChannelRadioDigital.iHeartRadio'
'4DF9E0F8.Netflix'
'6Wunderkinder.Wunderlist'
'Drawboard.DrawboardPDF'
'2FE3CB00.PicsArt-PhotoStudio'
'D52A8D61.FarmVille2CountryEscape'
'TuneIn.TuneInRadio'
'GAMELOFTSA.Asphalt8Airborne'
#"TheNewYorkTimes.NYTCrossword"
# apps which cannot be removed using Remove-AppxPackage
#"Microsoft.BioEnrollment"
#"Microsoft.MicrosoftEdge"
#"Microsoft.Windows.Cortana"
#"Microsoft.WindowsFeedback"
#"Microsoft.XboxGameCallableUI"
#"Microsoft.XboxIdentityProvider"
#"Windows.ContactSupport"
)
foreach ($app in $apps) {
Write-Output -InputObject "Trying to remove $app"
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -Online |
Where-Object DisplayName -EQ $app |
Remove-AppxProvisionedPackage -Online
}