Skip to content

Instantly share code, notes, and snippets.

@kapb14
Created April 2, 2016 17:18
Show Gist options
  • Select an option

  • Save kapb14/7d8e3bbba754917191ef7f7c945149bc to your computer and use it in GitHub Desktop.

Select an option

Save kapb14/7d8e3bbba754917191ef7f7c945149bc to your computer and use it in GitHub Desktop.
Choose a package from 'Out-GridView' and Uninstall it.
<#
.SYNOPSIS
Choose a package from 'Out-GridView' and Uninstall it.
#>
$program = Get-Package | Out-GridView -OutputMode Single -Title "Choose Package to Uninstall"
$program | Select Name,Version,Summary,Status
$program | Uninstall-Package -Force -Verbose
<#
gcm -Module PackageManagement
man Uninstall-Package
#>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment