w10install/wimscripts/SetupComplete.ps1
Michael H.G. Schmidt b5cd4ecc14 .
2020-12-25 15:05:19 +01:00

11 lines
441 B
PowerShell

# REMOVE all applications except the Store...
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
$progressPreference = 'SilentlyContinue'
Get-AppxPackage -AllUsers | where-object {$_.name -notlike "*store*"} | Remove-AppxPackage
Get-AppxProvisionedPackage -online | where-object {$_.name -notlike "*store*"} | Remove-AppxProvisionedPackage -online
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'