Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Find IE version on remote machines

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1420
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
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!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Find IE version on remote machines - 9/30/2004 12:51:07 PM   
  thebugler

 

Posts: 4
Score: 0
Joined: 9/30/2004
From:
Status: offline
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?
 
 
Post #: 1
 
 Re: Find IE version on remote machines - 10/1/2004 12:34:37 AM   
  mbouchard


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


      

(in reply to thebugler)
 
 
Post #: 2
 
 Re: Find IE version on remote machines - 10/1/2004 1:11:27 PM   
  thebugler

 

Posts: 4
Score: 0
Joined: 9/30/2004
From:
Status: offline
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.

(in reply to thebugler)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Find IE version on remote machines Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts