This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |