Is there a simple way of uninstalling Software UPDATES (Service Packs) listed in Programs and Features\Installed Updates with Powershell?
I am not talking about Windows Updates. But a specific software Service Pack that is listed in the same place where the win updates are.
I know how to uninstall Software that is listed in programs and features with PS But could not figured it out how to remove the Software updates/Service Packs
this command will list all the software
Get-WmiObject -Class Win32_Product | Select-Object -Property Name
or this one
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate,UninstallString | Format-Table –AutoSize
this will remove the software but i need to remove the software Service Pack( UPDATE) only,
$app = Get-WmiObject -Class Win32_Product | Where-Object {
$_.Name -match "Software Name"
}
$app.Uninstall()
I have seen that post already: How can I uninstall an application using PowerShell?
I hope that I am clear enough, thanks
long story short is that I need a command that will list or/and remove selected software UPDATES (service packs etc), thanks
any ideas, thanks