From d1b1be1bcee6ad4156224c7077078caccbf3712f Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 11 Jun 2018 11:36:42 -0500 Subject: [PATCH] Run Remove-AppxPackage for current user Run Remove-AppxPackage for the currently logged in user account --- Windows10Debloater.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Windows10Debloater.ps1 b/Windows10Debloater.ps1 index 9adb882..e12d08c 100644 --- a/Windows10Debloater.ps1 +++ b/Windows10Debloater.ps1 @@ -32,6 +32,7 @@ Function Start-Debloat { #Credit to /u/GavinEke for a modified version of my whitelist code [regex]$WhitelistedApps = 'Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|Microsoft.XboxGameCallableUI|Microsoft.XboxGamingOverlay|Microsoft.Xbox.TCUI|Microsoft.XboxGamingOverlay|Microsoft.XboxIdentityProvider' 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 }