From 4fca7090f6994031226ca7d13e7ab7ce7a909dcc Mon Sep 17 00:00:00 2001 From: Robert Smith Date: Sat, 23 Feb 2019 13:27:21 -0500 Subject: [PATCH] Fix variable name in Bloatware foreach There's no variable named $Debloat. Looks like this might be a typo. --- Windows10Debloater.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows10Debloater.ps1 b/Windows10Debloater.ps1 index 16f0e06..3355d79 100644 --- a/Windows10Debloater.ps1 +++ b/Windows10Debloater.ps1 @@ -118,7 +118,7 @@ Function DebloatBlacklist { ) foreach ($Bloat in $Bloatware) { Get-AppxPackage -Name $Bloat| Remove-AppxPackage -ErrorAction SilentlyContinue - Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $Debloat | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue + Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $Bloat | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Output "Trying to remove $Bloat." } }