Need To Uninstall jre 1.5.0_14 from Domain
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
:notthere
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,
rebootmyserver
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
:notthere
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,
rebootmyserver
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
rebootmyserver
16 years ago
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
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
Posted by:
AngelD
16 years ago
Posted by:
rebootmyserver
16 years ago
Posted by:
AngelD
16 years ago
Posted by:
rebootmyserver
16 years ago
Hi,
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
Dim MACHINEGUID
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"
WshShell.Run(CmdToRun)
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
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
Dim MACHINEGUID
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"
WshShell.Run(CmdToRun)
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.