2021-01-31 00:41:55 +01:00
|
|
|
# REMOVE all applications except the Store and the Calculator ...
|
2021-01-10 18:45:55 +01:00
|
|
|
|
|
|
|
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
|
|
|
|
2021-01-20 23:36:56 +01:00
|
|
|
$ErrorActionPreference = 'SilentlyContinue'
|
2021-01-10 18:45:55 +01:00
|
|
|
|
|
|
|
Get-AppxPackage -AllUsers |
|
2021-01-31 00:41:55 +01:00
|
|
|
where-object {$_.name -notlike @("*store*","*calc*")} |
|
2021-01-10 18:45:55 +01:00
|
|
|
Remove-AppxPackage
|
|
|
|
Get-AppxProvisionedPackage -online |
|
2021-01-31 00:41:55 +01:00
|
|
|
where-object {$_.name -notlike @("*store*","*calc*")} |
|
2021-01-10 18:45:55 +01:00
|
|
|
Remove-AppxProvisionedPackage -online
|
|
|
|
|
|
|
|
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
|
|
|
|