As an alternative you can use Powershell to do this with the SMS
namespace:

Get-wmiobject -namespace 'root\cimv2\sms' -Query "select * from
SMS_InstalledSoftware where ProductName Like 'Java _ Update%'" |
Foreach-object { msiexec /x $_.SoftwareCode /qn /norestart }


On Tue, Feb 24, 2015 at 2:57 PM, Ryan <[email protected]> wrote:

> The second link doesn't say anything about uninstalling...
>
> On Tue, Feb 24, 2015 at 2:52 PM, Jason Sandys <[email protected]> wrote:
>
>>  See the second link. CSI Windows provides a better alternative.
>>
>>
>>
>> Or how about Secunia? They’ll do it also. Or collect all of the possible
>> uninstall strings and put them into a script. There are many options. I
>> think a few folks have even posted scripts to this list that may be found
>> online with some searching:
>> http://www.bing.com/search?q=uninstall+all+java+versions+script&src=IE-TopResult&FORM=IETR02&conversationid=
>>
>>
>>
>> J
>>
>>
>>
>> *From:* [email protected] [mailto:
>> [email protected]] *On Behalf Of *Mike Vrabel
>> *Sent:* Tuesday, February 24, 2015 2:46 PM
>> *To:* [email protected]
>> *Subject:* RE: [mssms] RE: java uninstall with wmic
>>
>>
>>
>> Then recommend another option
>>
>> DOH!!!
>>
>>
>>
>> *From:* [email protected] [
>> mailto:[email protected] <[email protected]>] *On
>> Behalf Of *Jason Sandys
>> *Sent:* Tuesday, February 24, 2015 1:19 PM
>> *To:* [email protected]
>> *Subject:* [mssms] RE: java uninstall with wmic
>>
>>
>>
>> Don’t use Win32_Product, it has terrible side effects:
>>
>>
>>
>> -
>> http://myitforum.com/cs2/blogs/gramsey/archive/2011/01/25/win32-product-is-evil.aspx
>>
>> -          http://csi-windows.com/toolkit/win32product-replacement
>>
>>
>>
>> J
>>
>>
>>
>> *From:* [email protected] [
>> mailto:[email protected] <[email protected]>] *On
>> Behalf Of *Timothy Ransom
>> *Sent:* Tuesday, February 24, 2015 1:43 PM
>> *To:* [email protected]
>> *Subject:* [mssms] java uninstall with wmic
>>
>>
>>
>> Hi,
>>
>>
>>
>> I finally have ok to upgrade a group of 2k PCs to latest Java but many
>> have multiple versions.
>>
>>
>>
>> Has anyone used wmic from ConfigMgr to uninstall Java?
>>
>>
>>
>> No issues using this command locally to remove multiple versions.
>>
>> wmic product where “name like ‘Java%'” call uninstall
>>
>>
>>
>> Thanks,
>>
>> Tim
>>
>>
>>
>>
>> **********************************************************************************************
>> GDOL CONFIDENTIALITY NOTICE: This transmission may contain confidential
>> information protected by state or federal law. The information is intended
>> only for use consistent with the state business discussed in this
>> transmission. If you are not the intended recipient, you are hereby
>> notified that any disclosure, copying, distribution, or the taking of any
>> action based on the contents is strictly prohibited. If you have received
>> this transmission in error, please delete this email and notify the sender
>> immediately. Your cooperation is appreciated.
>>
>> **********************************************************************************************
>>
>>
>>
>>
>>
>>
>>
>>
>



Reply via email to