This commit is contained in:
USER
2023-04-18 16:10:09 +01:00
parent 8e0cd32306
commit 12b0a48fcd
3 changed files with 58 additions and 3 deletions

View File

@ -0,0 +1,57 @@
$applist = @(
"*BingWeather*"
"*CandyCrush*"
"*Disney*"
"*LenovoCompanion*"
"*Lenovo*"
"Microsoft.3DBuilder*"
"Microsoft.Advertising*"
"Microsoft.Appconnector*"
"Microsoft.Bing*"
"Microsoft.CommsPhone*"
"Microsoft.ConnectivityStore*"
"Microsoft.DesktopAppInstaller*"
"Microsoft.Getstarted*"
"Microsoft.Messaging*"
"Microsoft.MicrosoftSolitaireCollection*"
"Microsoft.MicrosoftStickyNotes*"
"Microsoft.MixedReality*"
"Microsoft.OneConnect*"
"Microsoft.People*"
"Microsoft.SkypeApp*"
"Microsoft.WindowsAlarms*"
"Microsoft.WindowsCamera*"
"Microsoft.windowscommunicationsapps*"
"Microsoft.WindowsFeedbackHub*"
"Microsoft.WindowsMaps*"
"Microsoft.WindowsPhone*"
"Microsoft.Windows.Photos*"
"Microsoft.Xbox*"
"Microsoft.ZuneMusic*"
"Microsoft.ZuneVideo*"
"Microsoft.YourPhone*"
"*Netflix*"
"SpotifyAB.SpotifyMusic*"
"TuneIn.TuneInRadio*"
"*Twitter*"
"*ZuneMusic*"
"*ZuneVideo*"
"Microsoft.Office.OneNote*"
"Microsoft.MicrosoftOfficeHub*"
"Microsoft.Office.Sway*"
)
#"Microsoft.Services.Store.Engagement"
#"Microsoft.WindowsStore"
#"Microsoft.StorePurchaseApp"
ForEach($app in $applist){
Get-AppxPackage -AllUsers -Name $app | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
Get-AppxPackage -Name $app | Remove-AppxPackage -ErrorAction SilentlyContinue
Get-AppxPackage -AllUsers -PackageTypeFilter Bundle -Name $app | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
Get-AppxProvisionedPackage -Online | where {$_.PackageName -like $app} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
}