From 8f353b1059c71146742b6050bef24e8c5cff3f58 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 19:50:51 -0800 Subject: [PATCH 01/17] Fixed IfElse that disables People/PeopleBand I added the suggested IfElse that disables the People/PeopleBand per issue number #76 --- Windows10Debloater.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Windows10Debloater.ps1 b/Windows10Debloater.ps1 index ae9697a..3400905 100644 --- a/Windows10Debloater.ps1 +++ b/Windows10Debloater.ps1 @@ -268,12 +268,13 @@ Function Protect-Privacy { Set-ItemProperty $LocationConfig Status -Value 0 #Disables People icon on Taskbar + #Disables People icon on Taskbar Write-Output "Disabling People icon on Taskbar" - $People = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" + $People = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People' If (!(Test-Path $People)) { - New-Item $People + mkdir $People -ErrorAction SilentlyContinue + New-ItemProperty $People -Name PeopleBand -Value 0 -Verbose } - Set-ItemProperty $People PeopleBand -Value 0 #Disables scheduled tasks that are considered unnecessary Write-Output "Disabling scheduled tasks" From cdddf0b477b73f66a210d6418b950fc3a63f0ca1 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 19:53:37 -0800 Subject: [PATCH 02/17] Update Windows10Debloater.ps1 --- Windows10Debloater.ps1 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Windows10Debloater.ps1 b/Windows10Debloater.ps1 index 3400905..ca9f97c 100644 --- a/Windows10Debloater.ps1 +++ b/Windows10Debloater.ps1 @@ -268,12 +268,10 @@ Function Protect-Privacy { Set-ItemProperty $LocationConfig Status -Value 0 #Disables People icon on Taskbar - #Disables People icon on Taskbar Write-Output "Disabling People icon on Taskbar" $People = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People' - If (!(Test-Path $People)) { - mkdir $People -ErrorAction SilentlyContinue - New-ItemProperty $People -Name PeopleBand -Value 0 -Verbose + If (Test-Path $People) { + Set-ItemProperty $People -Name PeopleBand -Value 0 -Verbose } #Disables scheduled tasks that are considered unnecessary From c78b37c07017f6c04565be29d4dbfd3091c16b31 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 20:00:34 -0800 Subject: [PATCH 03/17] This fixes issue #76 --- Windows10DebloaterGUI.ps1 | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/Windows10DebloaterGUI.ps1 b/Windows10DebloaterGUI.ps1 index 2681223..3f3f797 100644 --- a/Windows10DebloaterGUI.ps1 +++ b/Windows10DebloaterGUI.ps1 @@ -446,10 +446,9 @@ $RemoveAllBloatware.Add_Click( { #Disables People icon on Taskbar Write-Host "Disabling People icon on Taskbar" - $People = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People' - If (!(Test-Path $People)) { - mkdir $People -ErrorAction SilentlyContinue - New-ItemProperty $People -Name PeopleBand -Value 0 -Verbose + $People = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People' + If (Test-Path $People) { + Set-ItemProperty $People -Name PeopleBand -Value 0 -Verbose } #Disables suggestions on start menu @@ -704,10 +703,9 @@ $RemoveBloatNoBlacklist.Add_Click( { #Disables People icon on Taskbar Write-Host "Disabling People icon on Taskbar" - $People = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People' - If (!(Test-Path $People)) { - mkdir $People -ErrorAction SilentlyContinue - New-ItemProperty $People -Name PeopleBand -Value 0 -Verbose + $People = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People' + If (Test-Path $People) { + Set-ItemProperty $People -Name PeopleBand -Value 0 -Verbose } #Disables suggestions on start menu @@ -859,12 +857,11 @@ $RevertChange.Add_Click( { Set-ItemProperty $DataCollection AllowTelemetry -Value 1 #Re-enables People Icon on Taskbar - Write-Host "Enabling People icon on Taskbar" - $People = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" - If (!(Test-Path $People)) { - New-Item $People + Write-Host "Enabling People Icon on Taskbar" + $People = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People' + If (Test-Path $People) { + Set-ItemProperty $People -Name PeopleBand -Value 1 -Verbose } - Set-ItemProperty $People PeopleBand -Value 1 #Re-enables suggestions on start menu Write-Host "Enabling suggestions on the Start Menu" @@ -1128,11 +1125,10 @@ $DisableTelemetry.Add_Click( { #Disables People icon on Taskbar Write-Host "Disabling People icon on Taskbar" - $People = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" - If (!(Test-Path $People)) { - New-Item $People - } - Set-ItemProperty $People PeopleBand -Value 0 + $People = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People' + If (Test-Path $People) { + Set-ItemProperty $People -Name PeopleBand -Value 0 -Verbose + } #Disables scheduled tasks that are considered unnecessary Write-Host "Disabling scheduled tasks" From 3f39bf232f8bca66d0491a6425e850caa744df21 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 20:01:24 -0800 Subject: [PATCH 04/17] This fixes issue #76 --- Windows10SysPrepDebloater.ps1 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Windows10SysPrepDebloater.ps1 b/Windows10SysPrepDebloater.ps1 index fe78a84..6d3ef98 100644 --- a/Windows10SysPrepDebloater.ps1 +++ b/Windows10SysPrepDebloater.ps1 @@ -152,10 +152,9 @@ Function Protect-Privacy { #Disables People icon on Taskbar Write-Output "Disabling People icon on Taskbar" - $People = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People' - If (!(Test-Path $People)) { - mkdir $People -ErrorAction SilentlyContinue - New-ItemProperty $People -Name PeopleBand -Value 0 -Verbose + $People = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People' + If (Test-Path $People) { + Set-ItemProperty $People -Name PeopleBand -Value 0 -Verbose } #Disables suggestions on start menu From 51894fae314c8f9b3d226fc64fce1c59aa6420d8 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 20:04:39 -0800 Subject: [PATCH 05/17] Fix not removing specific blacklisted apps This should resolve issue #77 --- Windows10Debloater.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Windows10Debloater.ps1 b/Windows10Debloater.ps1 index ca9f97c..795c6ec 100644 --- a/Windows10Debloater.ps1 +++ b/Windows10Debloater.ps1 @@ -50,6 +50,8 @@ Function DebloatBlacklist { "Microsoft.MicrosoftOfficeHub" "Microsoft.MicrosoftSolitaireCollection" "Microsoft.NetworkSpeedTest" + "Microsoft.News" + "Microsoft.Office.Lens" "Microsoft.Office.OneNote" "Microsoft.Office.Sway" "Microsoft.OneConnect" @@ -58,6 +60,8 @@ Function DebloatBlacklist { "Microsoft.RemoteDesktop" "Microsoft.SkypeApp" "Microsoft.StorePurchaseApp" + "Microsoft.Office.Todo.List" + "Microsoft.Whiteboard" "Microsoft.WindowsAlarms" #"Microsoft.WindowsCamera" "microsoft.windowscommunicationsapps" @@ -87,6 +91,8 @@ Function DebloatBlacklist { "*Spotify*" "*Minecraft*" "*Royal Revolt*" + "*Sway*" + "*Speed Test*" #Optional: Typically not removed but you can if you need to for some reason #"*Microsoft.Advertising.Xaml_10.1712.5.0_x64__8wekyb3d8bbwe*" From 0c2ee7149bc977781894ba43116502cb87af8647 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 20:06:03 -0800 Subject: [PATCH 06/17] Additional Blacklisted apps should now be removed This should resolve issue #77 --- Windows10DebloaterGUI.ps1 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Windows10DebloaterGUI.ps1 b/Windows10DebloaterGUI.ps1 index 3f3f797..c47d429 100644 --- a/Windows10DebloaterGUI.ps1 +++ b/Windows10DebloaterGUI.ps1 @@ -151,6 +151,8 @@ $RemoveBlacklist.Add_Click( { "Microsoft.MicrosoftOfficeHub" "Microsoft.MicrosoftSolitaireCollection" "Microsoft.NetworkSpeedTest" + "Microsoft.News" + "Microsoft.Office.Lens" "Microsoft.Office.OneNote" "Microsoft.Office.Sway" "Microsoft.OneConnect" @@ -159,6 +161,8 @@ $RemoveBlacklist.Add_Click( { "Microsoft.RemoteDesktop" "Microsoft.SkypeApp" "Microsoft.StorePurchaseApp" + "Microsoft.Office.Todo.List" + "Microsoft.Whiteboard" "Microsoft.WindowsAlarms" #"Microsoft.WindowsCamera" "microsoft.windowscommunicationsapps" @@ -172,7 +176,7 @@ $RemoveBlacklist.Add_Click( { "Microsoft.XboxSpeechToTextOverlay" "Microsoft.ZuneMusic" "Microsoft.ZuneVideo" - + #Sponsored Windows 10 AppX Apps #Add sponsored/featured apps to remove in the "*AppName*" format "*EclipseManager*" @@ -188,6 +192,7 @@ $RemoveBlacklist.Add_Click( { "*Spotify*" "*Minecraft*" "*Royal Revolt*" + "*Sway*" #Optional: Typically not removed but you can if you need to for some reason #"*Microsoft.Advertising.Xaml_10.1712.5.0_x64__8wekyb3d8bbwe*" @@ -283,6 +288,8 @@ $RemoveAllBloatware.Add_Click( { "Microsoft.MicrosoftOfficeHub" "Microsoft.MicrosoftSolitaireCollection" "Microsoft.NetworkSpeedTest" + "Microsoft.News" + "Microsoft.Office.Lens" "Microsoft.Office.OneNote" "Microsoft.Office.Sway" "Microsoft.OneConnect" @@ -291,6 +298,8 @@ $RemoveAllBloatware.Add_Click( { "Microsoft.RemoteDesktop" "Microsoft.SkypeApp" "Microsoft.StorePurchaseApp" + "Microsoft.Office.Todo.List" + "Microsoft.Whiteboard" "Microsoft.WindowsAlarms" #"Microsoft.WindowsCamera" "microsoft.windowscommunicationsapps" @@ -304,7 +313,7 @@ $RemoveAllBloatware.Add_Click( { "Microsoft.XboxSpeechToTextOverlay" "Microsoft.ZuneMusic" "Microsoft.ZuneVideo" - + #Sponsored Windows 10 AppX Apps #Add sponsored/featured apps to remove in the "*AppName*" format "*EclipseManager*" @@ -320,6 +329,7 @@ $RemoveAllBloatware.Add_Click( { "*Spotify*" "*Minecraft*" "*Royal Revolt*" + "*Sway*" #Optional: Typically not removed but you can if you need to for some reason #"*Microsoft.Advertising.Xaml_10.1712.5.0_x64__8wekyb3d8bbwe*" From 5db2bcd378b4b83efaba7793fa68f368b71a8612 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 20:20:35 -0800 Subject: [PATCH 07/17] Added Self elevation to run as administrator I added code to perform self elevation asking for the script to be run as an Administrator, otherwise the script will not be able to perform at its best. This resolves issue #73 --- Windows10Debloater.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Windows10Debloater.ps1 b/Windows10Debloater.ps1 index 795c6ec..1355e1a 100644 --- a/Windows10Debloater.ps1 +++ b/Windows10Debloater.ps1 @@ -1,6 +1,15 @@ #This function finds any AppX/AppXProvisioned package and uninstalls it, except for Freshpaint, Windows Calculator, Windows Store, and Windows Photos. #Also, to note - This does NOT remove essential system services/software/etc such as .NET framework installations, Cortana, Edge, etc. +#This will self elevate the script so with a UAC prompt since this script needs to be run as an Administrator in order to function properly. +If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { + $arguments = "&" + $MyInvocation.MyCommand.Definition + "" + Write-Host "You didn't run this script as an Administrator. This script will self elevate to run as an Administrator." -ForegroundColor "White" + Start-Sleep 1 + Start-Process "powershell.exe" -Verb RunAs -ArgumentList $arguments + Break +} + #no errors throughout $ErrorActionPreference = 'silentlycontinue' From 5f726f50dc493cb227aa0d0f6139bdf923f3d1ca Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 20:22:42 -0800 Subject: [PATCH 08/17] Added code to have script self elevate to administrator I added code that checks if the script was run as an Administrator, and if not then it self elevates with a UAC prompt asking if it can be run as an Administrator. The script works best when run as an Adminstrator. --- Windows10DebloaterGUI.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Windows10DebloaterGUI.ps1 b/Windows10DebloaterGUI.ps1 index c47d429..1479500 100644 --- a/Windows10DebloaterGUI.ps1 +++ b/Windows10DebloaterGUI.ps1 @@ -1,3 +1,11 @@ +If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { + $arguments = "&" + $MyInvocation.MyCommand.Definition + "" + Write-Host "You didn't run this script as an Administrator. This script will self elevate to run as an Administrator." -ForegroundColor "White" + Start-Sleep 1 + Start-Process "powershell.exe" -Verb RunAs -ArgumentList $arguments + Break +} + Add-Type -AssemblyName System.Windows.Forms [System.Windows.Forms.Application]::EnableVisualStyles() From 770ccd0aca2075144f9e09a6ecb99f15caa35cf6 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 20:23:12 -0800 Subject: [PATCH 09/17] Update Windows10DebloaterGUI.ps1 --- Windows10DebloaterGUI.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Windows10DebloaterGUI.ps1 b/Windows10DebloaterGUI.ps1 index 1479500..30f53c4 100644 --- a/Windows10DebloaterGUI.ps1 +++ b/Windows10DebloaterGUI.ps1 @@ -1,3 +1,4 @@ +#This will self elevate the script so with a UAC prompt since this script needs to be run as an Administrator in order to function properly. If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { $arguments = "&" + $MyInvocation.MyCommand.Definition + "" Write-Host "You didn't run this script as an Administrator. This script will self elevate to run as an Administrator." -ForegroundColor "White" From 41b8b364fd212da74375f49c94d40622fc73449b Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 20:32:20 -0800 Subject: [PATCH 10/17] Added additional apps to the whitelist I added the following apps to the whitelist to not be removed. Microsoft.DesktopAppInstaller Microsoft.HEIFImageExtension Microsoft.ScreenSketch Microsoft.StorePurchaseApp Microsoft.VP9VideoExtensions Microsoft.WebMediaExtensions Microsoft.WebpImageExtension --- Windows10Debloater.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Windows10Debloater.ps1 b/Windows10Debloater.ps1 index 1355e1a..8bf56fd 100644 --- a/Windows10Debloater.ps1 +++ b/Windows10Debloater.ps1 @@ -36,7 +36,9 @@ Function DebloatAll { #Removes AppxPackages #Credit to /u/GavinEke for a modified version of my whitelist code - [regex]$WhitelistedApps = 'Microsoft.ScreenSketch|Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|Microsoft.XboxGameCallableUI|Microsoft.XboxGamingOverlay|Microsoft.Xbox.TCUI|Microsoft.XboxGamingOverlay|Microsoft.XboxIdentityProvider|Microsoft.MicrosoftStickyNotes|Microsoft.MSPaint|Microsoft.WindowsCamera|.NET' + [regex]$WhitelistedApps = 'Microsoft.ScreenSketch|Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|` + Microsoft.XboxGameCallableUI|Microsoft.XboxGamingOverlay|Microsoft.Xbox.TCUI|Microsoft.XboxGamingOverlay|Microsoft.XboxIdentityProvider|Microsoft.MicrosoftStickyNotes|Microsoft.MSPaint|Microsoft.WindowsCamera|.NET|` + Microsoft.HEIFImageExtension|Microsoft.ScreenSketch|Microsoft.StorePurchaseApp|Microsoft.VP9VideoExtensions|Microsoft.WebMediaExtensions|Microsoft.WebpImageExtension|Microsoft.DesktopAppInstaller' Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage Get-AppxPackage | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -NotMatch $WhitelistedApps} | Remove-AppxProvisionedPackage -Online @@ -51,7 +53,6 @@ Function DebloatBlacklist { #Unnecessary Windows 10 AppX Apps "Microsoft.BingNews" - "Microsoft.DesktopAppInstaller" "Microsoft.GetHelp" "Microsoft.Getstarted" "Microsoft.Messaging" @@ -84,7 +85,7 @@ Function DebloatBlacklist { "Microsoft.XboxSpeechToTextOverlay" "Microsoft.ZuneMusic" "Microsoft.ZuneVideo" - + #Sponsored Windows 10 AppX Apps #Add sponsored/featured apps to remove in the "*AppName*" format "*EclipseManager*" From 63738f772eebc21908ed20d6902b79f4d86b0604 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 20:35:35 -0800 Subject: [PATCH 11/17] Updated regex whitelist Updated regex whitelist per #68 --- Windows10DebloaterGUI.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Windows10DebloaterGUI.ps1 b/Windows10DebloaterGUI.ps1 index 30f53c4..ebaf0ae 100644 --- a/Windows10DebloaterGUI.ps1 +++ b/Windows10DebloaterGUI.ps1 @@ -274,7 +274,9 @@ $RemoveAllBloatware.Add_Click( { #Removes AppxPackages #Credit to /u/GavinEke for a modified version of my whitelist code - [regex]$WhitelistedApps = 'Microsoft.ScreenSketch|Microsoft.ScreenSketch|Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|Microsoft.XboxGameCallableUI|Microsoft.XboxGamingOverlay|Microsoft.Xbox.TCUI|Microsoft.XboxGamingOverlay|Microsoft.XboxIdentityProvider|Microsoft.MicrosoftStickyNotes|Microsoft.MSPaint|Microsoft.WindowsCamera|.NET' + [regex]$WhitelistedApps = 'Microsoft.ScreenSketch|Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|` + Microsoft.XboxGameCallableUI|Microsoft.XboxGamingOverlay|Microsoft.Xbox.TCUI|Microsoft.XboxGamingOverlay|Microsoft.XboxIdentityProvider|Microsoft.MicrosoftStickyNotes|Microsoft.MSPaint|Microsoft.WindowsCamera|.NET|` + Microsoft.HEIFImageExtension|Microsoft.ScreenSketch|Microsoft.StorePurchaseApp|Microsoft.VP9VideoExtensions|Microsoft.WebMediaExtensions|Microsoft.WebpImageExtension|Microsoft.DesktopAppInstaller' Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage Get-AppxPackage | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -NotMatch $WhitelistedApps} | Remove-AppxProvisionedPackage -Online @@ -603,7 +605,9 @@ $RemoveBloatNoBlacklist.Add_Click( { #Removes AppxPackages #Credit to Reddit user /u/GavinEke for a modified version of my whitelist code - [regex]$WhitelistedApps = 'Microsoft.ScreenSketch|Microsoft.Paint3D|Microsoft.MSPaint|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.MicrosoftStickyNotes|Microsoft.WindowsSoundRecorder|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|Microsoft.WindowsCamera|.NET' + [regex]$WhitelistedApps = 'Microsoft.ScreenSketch|Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|` + Microsoft.XboxGameCallableUI|Microsoft.XboxGamingOverlay|Microsoft.Xbox.TCUI|Microsoft.XboxGamingOverlay|Microsoft.XboxIdentityProvider|Microsoft.MicrosoftStickyNotes|Microsoft.MSPaint|Microsoft.WindowsCamera|.NET|` + Microsoft.HEIFImageExtension|Microsoft.ScreenSketch|Microsoft.StorePurchaseApp|Microsoft.VP9VideoExtensions|Microsoft.WebMediaExtensions|Microsoft.WebpImageExtension|Microsoft.DesktopAppInstaller' Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage -ErrorAction SilentlyContinue # Run this again to avoid error on 1803 or having to reboot. Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage -ErrorAction SilentlyContinue From e54110decc6659f99219454f5b964736e0274fd0 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 20:35:58 -0800 Subject: [PATCH 12/17] Update Windows10DebloaterGUI.ps1 --- Windows10DebloaterGUI.ps1 | 2 -- 1 file changed, 2 deletions(-) diff --git a/Windows10DebloaterGUI.ps1 b/Windows10DebloaterGUI.ps1 index ebaf0ae..f46a651 100644 --- a/Windows10DebloaterGUI.ps1 +++ b/Windows10DebloaterGUI.ps1 @@ -152,7 +152,6 @@ $RemoveBlacklist.Add_Click( { #Unnecessary Windows 10 AppX Apps "Microsoft.BingNews" - "Microsoft.DesktopAppInstaller" "Microsoft.GetHelp" "Microsoft.Getstarted" "Microsoft.Messaging" @@ -291,7 +290,6 @@ $RemoveAllBloatware.Add_Click( { #Unnecessary Windows 10 AppX Apps "Microsoft.BingNews" - "Microsoft.DesktopAppInstaller" "Microsoft.GetHelp" "Microsoft.Getstarted" "Microsoft.Messaging" From b350f5ce124f3f0080e1bb5fe23d385d6702d362 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 20:36:32 -0800 Subject: [PATCH 13/17] Updated regex whitelist --- Windows10SysPrepDebloater.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Windows10SysPrepDebloater.ps1 b/Windows10SysPrepDebloater.ps1 index 6d3ef98..b54bb5a 100644 --- a/Windows10SysPrepDebloater.ps1 +++ b/Windows10SysPrepDebloater.ps1 @@ -35,7 +35,9 @@ Function Start-Debloat { #Removes AppxPackages #Credit to Reddit user /u/GavinEke for a modified version of my whitelist code - [regex]$WhitelistedApps = 'Microsoft.Paint3D|Microsoft.MSPaint|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.MicrosoftStickyNotes|Microsoft.WindowsSoundRecorder|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|Microsoft.WindowsCamera|.NET' + [regex]$WhitelistedApps = 'Microsoft.ScreenSketch|Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|` + Microsoft.XboxGameCallableUI|Microsoft.XboxGamingOverlay|Microsoft.Xbox.TCUI|Microsoft.XboxGamingOverlay|Microsoft.XboxIdentityProvider|Microsoft.MicrosoftStickyNotes|Microsoft.MSPaint|Microsoft.WindowsCamera|.NET|` + Microsoft.HEIFImageExtension|Microsoft.ScreenSketch|Microsoft.StorePurchaseApp|Microsoft.VP9VideoExtensions|Microsoft.WebMediaExtensions|Microsoft.WebpImageExtension|Microsoft.DesktopAppInstaller' Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage -ErrorAction SilentlyContinue # Run this again to avoid error on 1803 or having to reboot. Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage -ErrorAction SilentlyContinue From 9fefc2239d16e6ca21a61f8ea1d97fb8552ed099 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 20:39:53 -0800 Subject: [PATCH 14/17] Added WindSynthBerry & MIDIBerry to whitelist --- Windows10Debloater.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows10Debloater.ps1 b/Windows10Debloater.ps1 index 8bf56fd..92063a2 100644 --- a/Windows10Debloater.ps1 +++ b/Windows10Debloater.ps1 @@ -38,7 +38,7 @@ Function DebloatAll { #Credit to /u/GavinEke for a modified version of my whitelist code [regex]$WhitelistedApps = 'Microsoft.ScreenSketch|Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|` Microsoft.XboxGameCallableUI|Microsoft.XboxGamingOverlay|Microsoft.Xbox.TCUI|Microsoft.XboxGamingOverlay|Microsoft.XboxIdentityProvider|Microsoft.MicrosoftStickyNotes|Microsoft.MSPaint|Microsoft.WindowsCamera|.NET|` - Microsoft.HEIFImageExtension|Microsoft.ScreenSketch|Microsoft.StorePurchaseApp|Microsoft.VP9VideoExtensions|Microsoft.WebMediaExtensions|Microsoft.WebpImageExtension|Microsoft.DesktopAppInstaller' + Microsoft.HEIFImageExtension|Microsoft.ScreenSketch|Microsoft.StorePurchaseApp|Microsoft.VP9VideoExtensions|Microsoft.WebMediaExtensions|Microsoft.WebpImageExtension|Microsoft.DesktopAppInstaller|WindSynthBerry|MIDIBerry' Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage Get-AppxPackage | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -NotMatch $WhitelistedApps} | Remove-AppxProvisionedPackage -Online From bacdcc1c5eae01e572c964287c78717c62e855eb Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 20:40:30 -0800 Subject: [PATCH 15/17] Added WindSynthBerry & MIDIBerry to whitelist --- Windows10DebloaterGUI.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows10DebloaterGUI.ps1 b/Windows10DebloaterGUI.ps1 index f46a651..86c72af 100644 --- a/Windows10DebloaterGUI.ps1 +++ b/Windows10DebloaterGUI.ps1 @@ -275,7 +275,7 @@ $RemoveAllBloatware.Add_Click( { #Credit to /u/GavinEke for a modified version of my whitelist code [regex]$WhitelistedApps = 'Microsoft.ScreenSketch|Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|` Microsoft.XboxGameCallableUI|Microsoft.XboxGamingOverlay|Microsoft.Xbox.TCUI|Microsoft.XboxGamingOverlay|Microsoft.XboxIdentityProvider|Microsoft.MicrosoftStickyNotes|Microsoft.MSPaint|Microsoft.WindowsCamera|.NET|` - Microsoft.HEIFImageExtension|Microsoft.ScreenSketch|Microsoft.StorePurchaseApp|Microsoft.VP9VideoExtensions|Microsoft.WebMediaExtensions|Microsoft.WebpImageExtension|Microsoft.DesktopAppInstaller' + Microsoft.HEIFImageExtension|Microsoft.ScreenSketch|Microsoft.StorePurchaseApp|Microsoft.VP9VideoExtensions|Microsoft.WebMediaExtensions|Microsoft.WebpImageExtension|Microsoft.DesktopAppInstaller|WindSynthBerry|MIDIBerry' Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage Get-AppxPackage | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -NotMatch $WhitelistedApps} | Remove-AppxProvisionedPackage -Online From 66af8e65975be63a53de5ee56c1c891ec1225944 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Fri, 25 Jan 2019 20:41:05 -0800 Subject: [PATCH 16/17] Update Windows10DebloaterGUI.ps1 --- Windows10DebloaterGUI.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows10DebloaterGUI.ps1 b/Windows10DebloaterGUI.ps1 index 86c72af..43f32c4 100644 --- a/Windows10DebloaterGUI.ps1 +++ b/Windows10DebloaterGUI.ps1 @@ -605,7 +605,7 @@ $RemoveBloatNoBlacklist.Add_Click( { #Credit to Reddit user /u/GavinEke for a modified version of my whitelist code [regex]$WhitelistedApps = 'Microsoft.ScreenSketch|Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|` Microsoft.XboxGameCallableUI|Microsoft.XboxGamingOverlay|Microsoft.Xbox.TCUI|Microsoft.XboxGamingOverlay|Microsoft.XboxIdentityProvider|Microsoft.MicrosoftStickyNotes|Microsoft.MSPaint|Microsoft.WindowsCamera|.NET|` - Microsoft.HEIFImageExtension|Microsoft.ScreenSketch|Microsoft.StorePurchaseApp|Microsoft.VP9VideoExtensions|Microsoft.WebMediaExtensions|Microsoft.WebpImageExtension|Microsoft.DesktopAppInstaller' + Microsoft.HEIFImageExtension|Microsoft.ScreenSketch|Microsoft.StorePurchaseApp|Microsoft.VP9VideoExtensions|Microsoft.WebMediaExtensions|Microsoft.WebpImageExtension|Microsoft.DesktopAppInstaller|WindSynthBerry|MIDIBerry' Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage -ErrorAction SilentlyContinue # Run this again to avoid error on 1803 or having to reboot. Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage -ErrorAction SilentlyContinue From 0a9610da5815892c134280f8d2c40635c60a1414 Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Sat, 2 Feb 2019 20:55:06 -0800 Subject: [PATCH 17/17] Update Windows10DebloaterGUI.ps1 --- Windows10DebloaterGUI.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Windows10DebloaterGUI.ps1 b/Windows10DebloaterGUI.ps1 index 43f32c4..acdc807 100644 --- a/Windows10DebloaterGUI.ps1 +++ b/Windows10DebloaterGUI.ps1 @@ -7,6 +7,10 @@ If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdenti Break } +<# This form was created using POSHGUI.com a free online gui designer for PowerShell +.NAME + Untitled +#> Add-Type -AssemblyName System.Windows.Forms [System.Windows.Forms.Application]::EnableVisualStyles()