Skip to content

Commit

Permalink
https://github.com/Microsoft/windows-dev-box-setup-scripts/issues/53
Browse files Browse the repository at this point in the history
  • Loading branch information
crutkas committed Jun 17, 2018
2 parents 0316142 + ed16e09 commit 103cfbd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions scripts/RemoveDefaultApps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ Write-Host "Uninstall unecessary applications that come with Windows out of the
# https://gist.github.com/alirobe/7f3b34ad89a159e6daa1
# https://github.com/W4RH4WK/Debloat-Windows-10/blob/master/scripts/remove-default-apps.ps1

function removeApp {
Param ([string]$appName)
Write-Output "Trying to remove $appName"
Get-AppxPackage $appName -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -Online | Where DisplayNam -like $appName | Remove-AppxProvisionedPackage -Online
}

$applicationList = @(
"Microsoft.BingFinance"
Expand Down Expand Up @@ -58,11 +64,4 @@ $applicationList = @(

foreach ($app in $applicationList) {
removeApp $app
}

function removeApp {
Param ([string]$appName)
Write-Output "Trying to remove $appName"
Get-AppxPackage $appName -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -Online | Where DisplayNam -like $appName | Remove-AppxProvisionedPackage -Online
}

0 comments on commit 103cfbd

Please sign in to comment.