-
-
Notifications
You must be signed in to change notification settings - Fork 706
Expand file tree
/
Copy pathappx.yml
More file actions
98 lines (89 loc) · 5.03 KB
/
appx.yml
File metadata and controls
98 lines (89 loc) · 5.03 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
title: AppX
description: Removes AppX packages and prevents them from being reinstalled
onUpgrade: false
actions:
- !writeStatus: {status: 'Removing AppX packages'}
# The reason of removing those applications is that they might be sending user data,
# showing unwanted content and using hardware resources. They can also simply be annoyances
# that are never used. However, most of these applications can be reinstalled via
# Microsoft Store in case the user needs them.
# https://docs.microsoft.com/en-us/windows/application-management/apps-in-windows-10
#####################################################################################################
# Get current AppX packages to deprovision removed ones afterward
- !powerShell:
command: |
(Get-AppxPackage).PackageFamilyName |
Out-File """$([Environment]::GetFolderPath('Windows'))\AtlasModules\AtlasPackagesOld.txt"""
runas: currentUserElevated
wait: true
# AppX Microsoft Teams
# Seems legacy - not in 23H2
- !taskKill: {name: 'msteams*', ignoreErrors: true}
- !appx: {name: 'MicrosoftTeams*', type: family}
- !registryValue: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Communications', value: 'ConfigureChatAutoInstall', data: '0', type: REG_DWORD}
# New AppX Teams in 24H2
- !taskKill: {name: 'ms-teams*', ignoreErrors: true}
- !appx: {name: 'MSTeams*', type: family}
# 24H2 Copilot app
- !appx: {name: 'Microsoft.Copilot*', type: family}
# Other apps
- !appx: {name: 'Clipchamp.Clipchamp*', type: family}
- !appx: {name: 'Disney.37853FC22B2CE*', type: family}
- !appx: {name: 'SpotifyAB.SpotifyMusic*', type: family}
- !appx: {name: 'Microsoft.549981C3F5F10*', type: family} # Cortana
- !appx: {name: 'Microsoft.XboxApp*', type: family} # Xbox Console Companion (deprecated)
- !appx: {name: 'microsoft.windowscommunicationsapps*', type: family} # Mail and Calendar
- !appx: {name: 'Microsoft.MSPaint*', type: family} # Paint 3D
- !appx: {name: 'Microsoft.Getstarted*', type: family} # Tips (deprecated)
- !appx: {name: 'Microsoft.ZuneVideo*', type: family} # Films & TV
- !appx: {name: 'MicrosoftCorporationII.MicrosoftFamily*', type: family}
- !appx: {name: 'Microsoft.MixedReality.Portal*', type: family}
- !appx: {name: 'Microsoft.Windows.DevHome*', type: family}
- !appx: {name: 'Microsoft.BingWeather*', type: family}
- !appx: {name: 'Microsoft.BingNews*', type: family}
- !appx: {name: 'Microsoft.BingSearch*', type: family}
- !appx: {name: 'Microsoft.OutlookForWindows*', type: family}
- !appx: {name: 'Microsoft.GetHelp*', type: family}
- !appx: {name: 'Microsoft.Microsoft3DViewer*', type: family}
- !appx: {name: 'Microsoft.MicrosoftOfficeHub*', type: family}
- !appx: {name: 'Microsoft.MicrosoftSolitaireCollection*', type: family}
- !appx: {name: 'Microsoft.MicrosoftStickyNotes*', type: family}
- !appx: {name: 'Microsoft.Office.OneNote*', type: family}
- !appx: {name: 'Microsoft.People*', type: family}
- !appx: {name: 'Microsoft.PowerAutomateDesktop*', type: family}
- !appx: {name: 'Microsoft.ScreenSketch*', type: family, option: 'remove-snipping-tool'}
- !appx: {name: 'Microsoft.SkypeApp*', type: family}
- !appx: {name: 'Microsoft.Todos*', type: family}
- !appx: {name: 'Microsoft.WindowsAlarms*', type: family}
- !appx: {name: 'Microsoft.WindowsCamera*', type: family}
- !appx: {name: 'Microsoft.WindowsFeedbackHub*', type: family}
- !appx: {name: 'Microsoft.WindowsMaps*', type: family}
- !appx: {name: 'Microsoft.WindowsSoundRecorder*', type: family}
- !appx: {name: 'Ink.Handwriting.Main.Store.en-US1.0', type: family}
# Removing using AME Wizard causes issues with Cross Device Experience Host installing
# - !appx: {name: 'Microsoft.YourPhone*', type: family}
- !powerShell:
command: |
Get-AppxPackage Microsoft.YourPhone* | Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName -eq 'Microsoft.YourPhone' } | Remove-AppxProvisionedPackage -Online
runas: currentUserElevated
wait: true
# Prevent provisioned applications from being reinstalled
# https://learn.microsoft.com/en-us/windows/application-management/remove-provisioned-apps-during-update
- !powerShell:
command: |
$a = """$([Environment]::GetFolderPath('Windows'))\AtlasModules\AtlasPackagesOld.txt"""
(diff (gc $a) ((Get-AppxPackage).PackageFamilyName)).InputObject |
Foreach-Object { New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned" -Name $_ -Force };
Remove-Item $a -Force
runas: currentUserElevated
wait: true
# Clear caches of Client.CBS and more
# Start menu cache is cleared later
- !writeStatus: {status: 'Clearing AppX caches'}
- !taskKill: {name: 'SearchHost*', ignoreErrors: true}
- !taskKill: {name: 'SearchApp*', ignoreErrors: true}
- !appx: {operation: clearCache, name: '*MicrosoftWindows.Client.CBS*'}
- !appx: {operation: clearCache, name: '*Microsoft.Windows.Search*'}
- !appx: {operation: clearCache, name: '*Microsoft.Windows.SecHealthUI*'}