Software Deployment Question

Need To Uninstall jre 1.5.0_14 from Domain

02/26/2008 10874 views
Hi All,
I read in the FAQ that this forum is specfically for distribution but I couldnt find a forum to fit Uninstallation sooooo forgive me if I am asking the following question in the wrong place.

I need to globally uninstall JRE 1.5.0_14 from our domain workstations in a Windows 2003 AD domain.

I have developed the following script which is supposed to run from a machine level but it bombs out.

IF NOT EXIST "%userprofile%\Local Settings\Application Data\Sun\Java\jre1.5.0_14\jre1.5.0_14.msi" goto notthere
IF EXIST "%userprofile%\Local Settings\Application Data\Sun\Java\jre1.5.0_14\jre1.5.0_14.msi" MsiExec.exe /X{3248F0A8-6813-11D6-A77B-00B0D0150140} /quiet
echo %computername%,%time% >> \\someserver\Java2\JRE15014\uninstalljre.txt

Does anyone have any experiance globally removing JRE 1.5.0_14 from workstations on a windows AD domain.
If so, could you share any tips with me?

Thank You,
0 Comments   [ + ] Show comments


Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

All Answers

How was JRE first installed to your domain computers?
If the uninstall failes you might want to turn on verbose logging on the computer(s) to get any hints on why this happens.
Answered 02/26/2008 by: AngelD
Red Belt

It was mistakenly pushed out during a patch vulnaribility sweep using a product called Shavlik HFNetchk.
Answered 02/26/2008 by: rebootmyserver
Senior Yellow Belt

Do you get any error message?
What did a verbose log tell you?

Can you manually uninstall JRE from the command line?
MsiExec.exe /X{3248F0A8-6813-11D6-A77B-00B0D0150140}
Answered 02/26/2008 by: AngelD
Red Belt

I can run "MsiExec.exe /X{3248F0A8-6813-11D6-A77B-00B0D0150140} /quiet" from a command line and it uninstalls the JRE just fine as long as the user has administrative permissions which most of our users dont.
I will enable "verbose logging" on the machine and see what kind of data is returned.

I tested linking "MsiExec.exe /X{3248F0A8-6813-11D6-A77B-00B0D0150140} /quiet" to a GPO and could not get it to remove the JRE from a machine level.
Do you think I need to qualify the location for msiexec.exe as in cd windows\system32, MsiExec.exe /X{3248F0A8-6813-11D6-A77B-00B0D0150140} /quiet. Or place msiexec somewhere on a share so that it is available for the login script????

The script needs to be applied from a machine level so that system permissions will allow the removal of the JRE.

I put together the following vbscript which runs well but only allows one machine at a time to be uninstalled. The script uses psexec to elevate permissions.

Dim node
Dim objFileSys
Dim strDomain
Const HKEY_LOCAL_MACHINE = &H80000002

Set fso = WScript.CreateObject("Scripting.FileSystemObject")
ScriptDir = fso.GetParentFolderName(WScript.ScriptFullName)
Set WshShell = CreateObject("WScript.Shell")
'prompts for varible information
'you can hard these if you like
strDomain=InputBox("Enter Domainname","Java 1.5.0_14 Removal","domainname",100,100)
Dim CmdToRun
CmdToRun="c:\Psexec.exe \\"&strComputer&" msiexec.exe /X {3248F0A8-6813-11D6-A77B-00B0D0150140} /quiet"

Would any of you know how to load a list of machines into a vbscript such as this to uninstall from a list of machines?
Thank You
Answered 02/29/2008 by: rebootmyserver
Senior Yellow Belt

Hi All,
Just wanted to let you know that I solved this issue and the script I used was as follows;

\\someserver\MsiExec.exe /X{3248F0A8-6813-11D6-A77B-00B0D0150140} /quiet

I ran this from a GPO which was called from a computer level in a startup script. I had to place the msiexec in a shared location on the network and then call the clsid from the local machine.
Worked like a champ and removed the particular JRE from 993 machines.
Thank You all for your help
Answered 03/04/2008 by: rebootmyserver
Senior Yellow Belt

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ