$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.MixedReality*" "Microsoft.OneConnect*" "Microsoft.People*" "Microsoft.SkypeApp*" "Microsoft.WindowsAlarms*" "Microsoft.windowscommunicationsapps*" "Microsoft.WindowsFeedbackHub*" "Microsoft.WindowsMaps*" "Microsoft.WindowsPhone*" "Microsoft.Xbox*" "Microsoft.ZuneMusic*" "Microsoft.ZuneVideo*" "Microsoft.YourPhone*" "*Netflix*" "SpotifyAB.SpotifyMusic*" "TuneIn.TuneInRadio*" "*Twitter*" "*ZuneMusic*" "*ZuneVideo*" ) #"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-AppxProvisionedPackage -Online | where {$_.PackageName -like $app} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue }