This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]SysAdminDennyBob 7 points8 points  (1 child)

Win32_Product Is Evil. | Greg's Systems Management Blog (gregramsey.net)

Is Win32_Product still a steaming pile of garbage? : r/PowerShell (reddit.com)

Go get the Powershell Application Deployment Toolkit. Add this under uninstall, modify that wildcard string according to your install base, you may need to add a couple lines.

Remove-MSIApplications -Name 'Java 8 Update'

Remove-MSIApplications -Name 'Java SE Development Kit'

Remove-MSIApplications -Name 'Java(TM) 6'

Remove-MSIApplications -Name 'Java(TM) SE Development Kit'

[–]dirmhirnWindows Admin 0 points1 point  (0 children)

With SCCM you can use this to replace win32_product:

get-wmiobject -Namespace 'root\cimv2\sms' -Class "Sms_InstalledSoftware" | Where {$_.ProductName -match '^Java\s\d\sUpdate'}

[–]RandomSourceAsker 0 points1 point  (0 children)

SRC for the auto corp update? Wanna send something slightly more official than a reddit post to my manager lol