+ Reply to Thread
Results 1 to 7 of 7
  1. Senior Member
    Join Date
    May 2003
    Location
    United Kingdom, London
    Posts
    602

    Certifications
    A+, Network+, MCDST, MCSA 2000, studying for CCNA.
    #1

    Default I need a script to silently and remotely uninstall all versions of java

    Hi All,

    I need a script to silently and remotely uninstall all versions of java. I Have tried google but can't find anything that works. Anyone have one to hand?

    This is for Windows Xp 34\64 and Windows 7 32\64


    Thanks,
    D
    Reply With Quote Quote  

  2. SS
  3. Stayed at a Holiday Inn.. the_Grinch's Avatar
    Join Date
    May 2007
    Posts
    4,028

    Certifications
    BS-CST MLS CISSP GMON MPSC Security+ XRY 1+2+3 XAMN AAA AA CMFF CCO CCPA
    #2
    WIP:
    Python
    Java
    Reply With Quote Quote  

  4. kgb
    kgb is offline
    Senior Member kgb's Avatar
    Join Date
    May 2012
    Location
    Suffolk, VA
    Posts
    372

    Certifications
    Java SE6 Programmer, Sec+, Net+, Proj+, A+, Bunch of CIW's, Bunch of MTA's
    #3
    Why all the hate?

    We must love the Java
    Reply With Quote Quote  

  5. Junior Starcraft Engineer
    Join Date
    Mar 2007
    Location
    Twin Cities, Minnesota
    Posts
    2,777

    Certifications
    A+, Net+, Security+, MCSA 2003, MCTS Win 7, AD, Net Infrastructure
    #4
    What tools are at your disposal? Group Policy? SCCM or a similar management tool? Or do you need to push it out to PCs on the network or named in a list another way, ie psexec or WMI?

    I recently had to deploy specific versions of Java in SCCM, and I recall all the command-line arguments being documented on the web site. The scripting itself is fairly trivial. I do have a script or two that can be adapted for this purpose.

    In a tightly controlled environment with no identified business need for Java, I can completely see blocking it. I consider Java to be easily a top 5 attack vector on workstations -- not #1 only because it is enabled by web browsers. In most environments, though, people need Java for some sites and web applications and disabling it is not feasible.
    Reply With Quote Quote  

  6. Senior Member
    Join Date
    May 2003
    Location
    United Kingdom, London
    Posts
    602

    Certifications
    A+, Network+, MCDST, MCSA 2000, studying for CCNA.
    #5
    Group Policy and LANDesk. Thank you for your replies! They have now decided not to remove the old version of Java.
    Last edited by D-boy; 12-20-2012 at 05:03 PM.
    Reply With Quote Quote  

  7. Questionably Benevolent Moderator Slowhand's Avatar
    Join Date
    Oct 2005
    Location
    Bay Area, CA
    Posts
    5,080
    Blog Entries
    1

    Certifications
    A+, Linux+, Server+, Security+, MCSA 2003/2008/2012/2016, CCNA(expired), ITIL Foundation v3 (2011), VCP5-DCV, VCA-Cloud, VCA-DCV, VCA-WM
    #6
    Well damn, and here I even wrote up a little PowerShell script for you:

    Code:
    $computers = Get-Content "C:\temp\computers.txt"
    
    ForEach-Object ( $computer in $computers ) {
    
    
        $java = Get-WmiObject -ComputerName $computer Win32_Product | WHERE { $_.name -like "J2SE Runtime Environment*" }
        $java.uninstall()
        
    }
    Just toss the list of computers, one name on each line, in the computers.txt file and you're good to go. Ah well, maybe you can use it in the future.
    Reply With Quote Quote  

  8. Senior Member
    Join Date
    Dec 2008
    Location
    Denver
    Posts
    1,882

    Certifications
    CCNA:Security,BCNE,Exchange 2007, ITIL
    #7
    I think you can script this tool:

    JavaRa | SingularLabs
    Reply With Quote Quote  

+ Reply to Thread

Social Networking & Bookmarks