All Forums >> [Scripting] >> WSH & Client Side VBScript >> Find IE version on remote machines Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I am trying to take a list of computers on my network and find the ie version they all have, using vbscript. I am aware I probably have to run the reg.exe. I am new at this. I am sure this is a common network related issue. Can someone a newbie?
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
Here is a function that I use in one of my scripts. I normally use it on a local PC but have edited it to work on a remote one. In my local version I use RegRead to find the path to the iexplore.exe file but I have found remote regread flaky so am not using it here. If I remember correctly iexplore.exe should be in the same location for most versions of IE. As always, watch for line wraps Here ya go, Mike
Thank you for that response. I knew there was a way to check the iexplore.exe for version on the hard drive and that gets my job done. I also know there is a way to do this with using objShell.run reg query ... and want to try that version for knowledge and experience.
I have the code that will run in a command line, but I don't know how to escape the quotation marks properly for it to run in vbscript. Here is the code:
Set objScriptExec = objShell.Exec ( "for /f "Tokens=2*" %u in ('reg query "\\strComputer\HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer" /v Version ^| findstr /I /L /C:"REG_SZ"'") 'do(@echo %v) add this here for command line only strIEVer = objScriptExec.StdOut.ReadAll Wscript.Echo(strIEVer)
I get various errors when trying to add quotation marks as the escape character. Can you help with this situation.