8 lines
419 B
PowerShell
8 lines
419 B
PowerShell
Get-WmiObject -Class Win32_Product | Select-Object -Property Name | Out-GridView
|
|
|
|
[void][System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic')
|
|
$Program = [Microsoft.VisualBasic.Interaction]::InputBox('Please enter the name of the program you wish to uninstall', 'Uninstall Program')
|
|
|
|
$MyApp = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -eq "$Program" }
|
|
|
|
$MyApp.Uninstall() |