Skip to content

Instantly share code, notes, and snippets.

@a4099181
Created August 31, 2016 12:29
Show Gist options
  • Save a4099181/84939f2269c22c7d7d40423efda74816 to your computer and use it in GitHub Desktop.
Save a4099181/84939f2269c22c7d7d40423efda74816 to your computer and use it in GitHub Desktop.
$names = "3DBuilder", "Bing", "CandyCrushSodaSaga", "Getstarted", "OfficeHub", "SkypeApp", "Solitaire", "Twitter", "Feedback"
ForEach($name in $names)
{
Get-AppxPackage -AllUsers | Where-Object { $_.Name.Contains($name) } | Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName.Contains($name) } | Remove-AppxProvisionedPackage -Online
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment