Re: script to determine java install and version by mike
mike
Fri Feb 23 15:20:22 CST 2007
I guess it would have helped had I posted what I have:
strComputers = Split(strComputers, vbCrLf)
For x = 0 to UBound(strComputers)
Set refWMI = GetObject("Winmgmts:{impersonationLevel=impersonate}!\\"
& CStr(strComputers(x)))
Set refProcess = refWMI.Get("Win32_Process")
refProcess.Create "java -version 2>>\\turbo\c$\1.txt"
Next
I am trying to right the value out to a file on my local pc. This
needs to hit pc's remotely. Like I said he have many flavors of java
around and I need to see what I will have to patch. I wanted to look
at reg keys but was afraid there would be too many variables with the
different versions.
On Feb 23, 3:33 pm, "JHP" <goaways...@GFY.com> wrote:
> Not sure if this is part of what your looking for:
>
> Set objFSO = CreateObject("Scripting.FileSystemObject")
> rtnVersion = objFSO.GetFileVersion("C:\WINDOWS\system32\java.exe")
> Set objFSO = Nothing
> WScript.Echo "Jave Version: " & rtnVersion
>
> "mike d" <mike.drew...@gmail.com> wrote in message
>
> news:1172245527.006210.70520@m58g2000cwm.googlegroups.com...
>
>
>
> > Hi All,
>
> > I am trying to find a script to tell on a number of computers if java
> > is installed and is what version. We are trying to determine what dst
> > patched we need to apply for java.
>
> > I know I can run java -version remotely but how do I get the response
> > back from that to a file/log.
>
> > Thanks
> > Mike- Hide quoted text -
>
> - Show quoted text -