Skip to content

Instantly share code, notes, and snippets.

View neil-bh's full-sized avatar

Neil neil-bh

View GitHub Profile
@neil-bh
neil-bh / RemoveApps script for Windows 10
Last active May 24, 2022 18:21
Script to Remove Apps for Windows 10 (with multiple version support). Script updated to prevent apps returning after being removed on Pre-1803 releases of Windows 10
# Original Script by: Jörgen Nilsson
# Blog post: https://ccmexec.com/2019/04/updated-removeapps-script-for-windows-10-1903/
# Updated by: Neil Bourne-Harris (02/05/2019)
# Changelog: Added condition to prevent apps from returning by adding the apps respective deprovisioning key
# to the registry (not required for 1803 and above).
# Ref: https://docs.microsoft.com/en-us/windows/application-management/remove-provisioned-apps-during-update
$Buildnr = (Get-CimInstance Win32_Operatingsystem).BuildNumber
$Applist = Get-Content "$($PSScriptRoot)\apps$($Buildnr).txt"