-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremoveApps.ps1
54 lines (53 loc) · 1.76 KB
/
removeApps.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
$Apps = "A278AB0D.MarchofEmpires",
"89006A2E.AutodeskSketchBook",
"KeeperSecurityInc.Keeper",
"king.com.BubbleWitch3Saga",
"king.com.CandyCrushSodaSaga",
"Microsoft.Advertising.JavaScript",
"Microsoft.Advertising.Xaml",
"Microsoft.BingNews",
"Microsoft.BingWeather",
"Microsoft.DesktopAppInstaller",
"Microsoft.GetHelp",
"Microsoft.Getstarted",
"Microsoft.Messaging",
"Microsoft.Microsoft3DViewer",
"Microsoft.MicrosoftOfficeHub",
"Microsoft.MicrosoftSolitaireCollection",
"Microsoft.MicrosoftStickyNotes",
"Microsoft.MinecraftUWP",
"Microsoft.MixedReality.Portal"
"Microsoft.Office.OneNote",
"Microsoft.OneConnect",
"Microsoft.People",
"Microsoft.Print3D",
"Microsoft.SkypeApp",
"Microsoft.StorePurchaseApp",
"Microsoft.Wallet",
"Microsoft.Windows.Photos",
"microsoft.windowscommunicationsapps",
"Microsoft.WindowsFeedbackHub",
"Microsoft.WindowsMaps",
"Microsoft.Xbox.TCUI",
"Microsoft.XboxApp",
"Microsoft.XboxGameCallableUI",
"Microsoft.XboxGameOverlay",
"Microsoft.XboxGamingOverlay"
"Microsoft.XboxIdentityProvider",
"Microsoft.XboxSpeechToTextOverlay",
"Microsoft.ZuneMusic",
"Microsoft.ZuneVideo",
"TreeCardGames.SpiderSolitaireCollectionFree",
"Windows.ContactSupport",
"XINGAG.XING"
ForEach ($App in $Apps)
{
$PackageIdentifier = (Get-AppxPackage $App).PackageFullName
If ($PackageIdentifier) {
Remove-AppxPackage -Package $PackageIdentifier
Write-Host "$App uninstalled"
}
Else {
Write-Host "Cannot remove $App"
}
}