Remove Windows Junk

This article is about PowerShell and the tasks I use it for.

Remove Junk from Microsoft:

$applist=@("Microsoft.XboxSpeechToTextOverlay",

"Microsoft.Xbox.TCUI",

"Microsoft.UI.Xaml.2.0",

"Microsoft.UI.Xaml.2.0",

"Microsoft.Microsoft3DViewer",

"Microsoft.XboxApp",

"Microsoft.BingWeather",

"windows.immersivecontrolpanel",

"Microsoft.Messaging",

"Microsoft.OneConnect",

"Microsoft.WebMediaExtensions",

"Microsoft.SkypeApp",

"microsoft.windowscommunicationsapps",

"Microsoft.ZuneMusic",

"Microsoft.ZuneVideo",

"Microsoft.BingTranslator",

"Microsoft.WindowsFeedbackHub",

"Microsoft.AAD.BrokerPlugin",

"Microsoft.Windows.CloudExperienceHost",

"Microsoft.Windows.ShellExperienceHost",

"Microsoft.Windows.Cortana",

"Microsoft.Windows.ContentDeliveryManager",

"Microsoft.Wallet",

"Microsoft.Windows.OOBENetworkConnectionFlow",

"Microsoft.Windows.OOBENetworkCaptivePortal",

"Microsoft.Windows.ParentalControls",

"Microsoft.Windows.NarratorQuickStart",

"Microsoft.Windows.PeopleExperienceHost",

"Microsoft.Windows.CapturePicker",

"Windows.CBSPreview",

"Microsoft.XboxGameCallableUI",

"Microsoft.Windows.XGpuEjectDialog",

"Microsoft.Windows.SecureAssessmentBrowser",

"Microsoft.Windows.SecHealthUI",

"Microsoft.Windows.PinningConfirmationDialog",

"Microsoft.Windows.AssignedAccessLockApp",

"Microsoft.Windows.Apprep.ChxApp",

"Microsoft.Win32WebViewHost",

"Microsoft.PPIProjection",

"Microsoft.MicrosoftEdgeDevToolsClient",

"Microsoft.ECApp",

"Microsoft.CredDialogHost",

"Microsoft.BioEnrollment",

"Microsoft.AsyncTextService",

"Microsoft.AccountsControl",

"Microsoft.WebpImageExtension",

"Microsoft.Getstarted",

"Microsoft.XboxGamingOverlay",

"Microsoft.MixedReality.Portal",

"Microsoft.HEIFImageExtension",

"Microsoft.WindowsMaps",

"Microsoft.MicrosoftSolitaireCollection",

"Microsoft.People",

"Microsoft.Office.OneNote",

"Microsoft.GetHelp",

"Microsoft.YourPhone",

"Microsoft.XboxGameOverlay",

"Microsoft.Print3D",

"Microsoft.XboxIdentityProvider")

foreach ($removethis in $applist){

 Write-Host "Removing $removethis"

  Read-Host -Prompt "Press Enter to continue or Ctrl+C to exit"

 Get-AppxPackage $removethis | Remove-AppxPackage

 Write-Host "Removed $removethis"

}