tis-remove-windows-appx
2-14
Removes unwanted preinstalled Windows UWP apps
2800 downloads
See build result See VirusTotal scan

Description
- package : tis-remove-windows-appx
- name : Remove Windows AppX
- version : 2-14
- categories : Security
- maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
- installed_size :
- editor :
- licence :
- signature_date : 2024-03-20T10:01:54.609777
- size : 7.23 Ko
- locale : all
- target_os : windows
- impacted_process :
- architecture : all
control
package : tis-remove-windows-appx
version : 2-14
architecture : all
section : base
priority : optional
name : Remove Windows AppX
categories : Security
maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
description : Removes unwanted preinstalled Windows UWP apps
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.3
sources :
installed_size :
impacted_process :
description_fr : Supprime les applications Windows UWP préinstallées indésirables
description_pl : Usuwa niechciane preinstalowane aplikacje Windows UWP
description_de : Entfernt unerwünschte vorinstallierte Windows UWP-Anwendungen
description_es : Elimina las aplicaciones Windows UWP preinstaladas no deseadas
description_pt : Remove aplicações Windows UWP pré-instaladas indesejadas
description_it : Rimuove le app UWP di Windows preinstallate non desiderate
description_nl : Verwijdert ongewenste vooraf geïnstalleerde Windows UWP-apps
description_ru : Удаление ненужных предустановленных приложений Windows UWP
audit_schedule :
editor :
keywords : remove,appxpackage,appxprovisionedpackage,remove-appxpackage,remove-appxprovisionedpackage
licence :
homepage :
package_uuid : 8037d275-f8a5-4a88-8b8b-af96ab8d700a
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 10.0
max_os_version :
icon_sha256sum : 9420721210f5d9c50c9e35c9fdbf0a088b30e165df8311c5f2176ce60e122475
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : v4xon+A9YsyQ3Ftv/bViv6vXmHJ531vJOypQY6p/M/Y9gg34WToI+ul4tnPG5ilGH64F9dvGVPNzzt3GLLKSZlQ2PnNEba+H+eNm+A1IB5gWVO44QoLcAvUjK39jizxgiWMRiAJJhB0lc0fov+SEipSkCP1yMAKdD8hInGWahpB0FedA7Q2aKdYRDLph9hQ0WR0afHw96xKDaaih5XH8lsSqVvTqVVRevB0ep+7v1ULssqxs638eQ2KftvxgfDSzztmEANx6+9ZsUsx1/34mOYdDIQfcnI4jsMbrsftInzvvsD1+gcnGF31RzbWXFbEmTB2zb1Su94w9humwBUWfEw==
signature_date : 2024-03-20T10:01:54.609777
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
apps_exception_dict = {
"Microsoft.Paint": ["tis-paint", "tis-microsoft-paint"],
"MicrosoftTeams": ["tis-microsoft-teams-uwp"],
"Microsoft.3DBuilder": ["tis-microsoft-3dbuilder", "tis-3dbuilder"],
"Microsoft.Microsoft3DViewer": ["tis-microsoft-3dviewer", "tis-3dviewer"],
"Microsoft.XboxGam": ["tis-xbox-game-bar"], # do not use asterisk (*) like Microsoft.XboxGam*
"SpotifyAB.SpotifyMusic": ["tis-spotify-uwp"],
"MicrosoftCorporationII.QuickAssist": ["tis-quickassist"],
"Microsoft.Todos": ["tis-microsoft-todos", "tis-todos"],
"Microsoft.ZuneMusic": ["tis-windows-media-player-uwp"],
"Microsoft.ZuneVideo": ["tis-microsoft-zunevideo", "tis-movies-&-tv", "tis-movies-and-tv"],
"Microsoft.WindowsSoundRecorder": ["tis-microsoft-soundrecorder"],
"Microsoft.Windows.Photos": ["tis-microsoft-photos"],
"9932MartCliment.WingetUIWidgets": ["tis-wingetui", "tis-wingetui-widgets"],
"Microsoft.WindowsCalculator": ["tis-calculator", "tis-windows-calculator", "tis-windowscalculator"],
"Microsoft.WindowsStore": ["tis-microsoft-store"],
# "Microsoft.StorePurchaseApp": ["tis-microsoft-store"],
"Microsoft.MicrosoftStickyNotes": ["tis-microsoft-sticky-notes", "tis-microsoft-stickynotes", "tis-stickynotes", "tis-sticky-notes"],
"Microsoft.Office.OneNote": ["tis-microsoft-onenote", "tis-microsoft-onenote-uwp", "tis-onenote", "tis-onenote-uwp"],
"7EE7776C.LinkedInforWindows": ["tis-linkedin"],
"Microsoft.WindowsTerminal": ["tis-windows-terminal", "tis-windowsterminal", "tis-terminal"],
"Microsoft.Windows.DevHome": ["tis-dev-home", "tis-windows-dev-home", "tis-microsoft-windows-dev-home"],
"Microsoft.Windows.DevHomeAzureExtension": ["tis-dev-home-azure-extension"],
"Microsoft.Windows.DevHomeGitHubExtension": ["tis-dev-home-github-extension"],
"Microsoft.WindowsNotepad": ["tis-windows-notepad", "tis-windowsnotepad", "tis-notepad"],
"Clipchamp.Clipchamp": ["tis-microsoft-clipchamp", "tis-clipchamp", "tis-clipchamp-clipchamp", "tis-windows-clipchamp"],
"Microsoft.WindowsNotepad": ["tis-windows-notepad", "tis-windowsnotepad", "tis-notepad"],
"Microsoft.OutlookForWindows": ["tis-outlook-for-windows", "tis-outlook", "tis-outlook-uwp"],
} # any_prefix but value must be a list
apps = [
### Windows 11 default apps
"Clipchamp.Clipchamp",
"Microsoft.BingNews",
"Microsoft.Paint",
"Microsoft.PowerAutomateDesktop",
# "Microsoft.StorePurchaseApp",
"Microsoft.Todos",
"Microsoft.WindowsNotepad",
# "Microsoft.WindowsTerminal",
"MicrosoftCorporationII.QuickAssist",
"MicrosoftTeams",
"MicrosoftWindows.Client.WebExperience",
"Microsoft.OneDriveSync",
"Microsoft.OutlookForWindows",
"Microsoft.Windows.DevHome",
"Microsoft.Windows.DevHomeAzureExtension",
"Microsoft.Windows.DevHomeGitHubExtension",
### Windows 10 default apps
"Microsoft.3DBuilder",
"Microsoft.Print3D",
"Microsoft.Microsoft3DViewer",
"Microsoft.MixedReality.Portal",
"Microsoft.YourPhone",
"Microsoft.WindowsFeedbackHub",
"Microsoft.Windows.Cortana",
"Microsoft.GetHelp",
#'Microsoft.Appconnector',
"Microsoft.BingFinance",
"Microsoft.BingNews",
"Microsoft.BingSports",
"Microsoft.BingWeather",
"Microsoft.FreshPaint",
"Microsoft.MSPaint",
"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.GamingApp",
"Microsoft.XboxApp",
# "Microsoft.Xbox.TCUI",
"Microsoft.XboxGameOverlay",
"Microsoft.XboxGamingOverlay",
"Microsoft.XboxIdentityProvider",
"Microsoft.XboxSpeechToTextOverlay",
"Microsoft.ZuneMusic",
"Microsoft.ZuneVideo",
"microsoft.windowscommunicationsapps",
"Microsoft.MinecraftUWP",
"Microsoft.MixedReality.Portal",
"Microsoft.ScreenSketch"
### 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.*",
"ClearChannelRadioDigital.iHeartRadio",
"4DF9E0F8.Netflix",
"6Wunderkinder.Wunderlist",
"Drawboard.DrawboardPDF",
"2FE3CB00.PicsArt-PhotoStudio",
"D52A8D61.FarmVille2CountryEscape",
"TuneIn.TuneInRadio",
"TheNewYorkTimes.NYTCrossword",
"828B5831.HiddenCityMysteryofShadow",
"Microsoft.Advertising.Xaml",
"SpotifyAB.SpotifyMusic",
"7EE7776C.LinkedInforWindows"
### Apps which cannot be removed using Remove-AppxPackage
#'Microsoft.BioEnrollment',
# "Microsoft.MicrosoftEdge",
# "Microsoft.MicrosoftEdge.Stable",
# "Microsoft.MicrosoftEdgeDevToolsClient",
"Windows.ContactSupport",
# "Microsoft.XboxGameCallableUI",
# "Microsoft.SecHealthUI",
# "Microsoft.Windows.CallingShellApp",
# "Microsoft.Services.Store.Engagement",
# "MicrosoftWindows.UndockedDevKit",
]
def install():
print("Removing: Unwanted Microsoft Store applications...")
uninstall_list = get_appx_uninstall_list(apps, all_users=True, apps_exception_dict=apps_exception_dict)
for app in uninstall_list:
try:
print("Removing: %s" % app)
remove_appx(app)
except:
print("Unable to remove: %s" % app)
print("Done")
# def session_setup():
# print("Removing: Unwanted Microsoft Store applications...")
# uninstall_list = get_appx_uninstall_list(apps, all_users=False, apps_exception_dict=apps_exception_dict)
# # Trying to remove user appxpackages
# for app in uninstall_list:
# try:
# print("Removing: %s" % app)
# remove_user_appx(app)
# except:
# print("Unable to remove: %s" % app)
def get_appx_uninstall_list(apps, all_users=False, apps_exception_dict=None):
# in apps_exception_dict: you can use any_prefix but value must be a list
uninstall_list = []
if all_users == True:
installed_appx_packages = run_powershell("Get-AppxPackage -AllUsers")
else:
installed_appx_packages = run_powershell("Get-AppxPackage")
for packages in installed_appx_packages:
if apps_exception_dict is not None:
skip_appx = False
for a, p in apps_exception_dict.items():
if a in packages["Name"]:
if any([control.package.split("-", 1)[0] + "-" + el.split("-", 1)[1] in [pa.package for pa in WAPT.installed()] for el in p]):
skip_appx = True
print(f'Keeping AppX: "{a}" because a package in {p} is installed on the host.')
break
if skip_appx:
continue
if packages["Name"] in apps:
uninstall_list.append(packages["Name"])
return uninstall_list
ab145ded7bbe3d3d5963888a815a9b56b76f324996cef0e7b2dd992adff292b5 : setup.py
9420721210f5d9c50c9e35c9fdbf0a088b30e165df8311c5f2176ce60e122475 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
b05d0862b3644b580dddc7f604af20e501792eb4359028428fb159e08f8bf600 : luti.json
c2345412c9dd284a486d0123fee789a71b7f1a0a6eac7e3cf0eb69fa1cbc2ab9 : WAPT/control