Skip to content

Instantly share code, notes, and snippets.

@AzimsTech
Last active August 4, 2020 22:22
Show Gist options
  • Select an option

  • Save AzimsTech/c468b873e406ad512f51244014e3612c to your computer and use it in GitHub Desktop.

Select an option

Save AzimsTech/c468b873e406ad512f51244014e3612c to your computer and use it in GitHub Desktop.
Remove shit except Store, Calculator, ScreenSketch, Photos, Music & Videos
Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -CNotLike '*Store*' -and $_.DisplayName -CNotLike '*Calc*' -and $_.DisplayName -CNotLike '*ScreenSketch*' -and $_.DisplayName -CNotLike '*Photos*' -and $_.DisplayName -CNotLike '*Music*' -and $_.DisplayName -CNotLike '*Video*'} | Remove-AppxProvisionedPackage -Online
Get-AppXPackage | Where-Object {$_.Name -CNotLike '*Store*' -and $_.Name -CNotLike '*Calc*' -and $_.Name -CNotLike '*ScreenSketch*' -and $_.Name -CNotLike '*Photos*' -and $_.Name -CNotLike '*Music*' -and $_.Name -CNotLike '*Video*'} | Remove-AppxPackage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment