File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ Write-Host "Uninstall unecessary applications that come with Windows out of the
8
8
# https://gist.github.com/alirobe/7f3b34ad89a159e6daa1
9
9
# https://github.com/W4RH4WK/Debloat-Windows-10/blob/master/scripts/remove-default-apps.ps1
10
10
11
+ function removeApp {
12
+ Param ([string ]$appName )
13
+ Write-Output " Trying to remove $appName "
14
+ Get-AppxPackage $appName - AllUsers | Remove-AppxPackage
15
+ Get-AppXProvisionedPackage - Online | Where DisplayNam -like $appName | Remove-AppxProvisionedPackage - Online
16
+ }
11
17
12
18
$applicationList = @ (
13
19
" Microsoft.BingFinance"
@@ -58,11 +64,4 @@ $applicationList = @(
58
64
59
65
foreach ($app in $applicationList ) {
60
66
removeApp $app
61
- }
62
-
63
- function removeApp {
64
- Param ([string ]$appName )
65
- Write-Output " Trying to remove $appName "
66
- Get-AppxPackage $appName - AllUsers | Remove-AppxPackage
67
- Get-AppXProvisionedPackage - Online | Where DisplayNam -like $appName | Remove-AppxProvisionedPackage - Online
68
67
}
You can’t perform that action at this time.
0 commit comments