Solved

Script To Check IE Version Remotely

Posted on 2009-07-11
5
1,714 Views
Last Modified: 2013-12-08
I found a script, but I dont quite understand how to run it.  It seems like a collection of DOS command that I guess I could paste into a .bat file, but this did not work.

MS KB556019

What I'd like to do, is somehow find out what version of IE all of the windows xp machines have on my server 2003 domain.

Can someone explain how to deploy this script?
@echo off
 
Srvlist=C:\Temp\Srvlist.txt
 
Echo Computer Name, Internet Explorer Version >> Result.csv
 
SET IE_Ver=
 
For /F Tokens=* %%a In (%srvlist%) Do (
 
Set Comp_name=%%a
 
Set RegQry=\\%%a\HKLM\Software\Microsoft\Internet Explorer /v Version
 
REG.exe Query %RegQry% > CheckCC.txt
 
Find /i "Version" < CheckCC.txt > StringCheck.txt
 
FOR /f Tokens=3 %%b in (CheckCC.txt) DO SET IE_Ver=%%b
 
Echo %Comp_name, %IE_Ver% >> Result.csv
 
)

Open in new window

0
Comment
Question by:oveloz
  • 3
  • 2
5 Comments
 
LVL 31

Expert Comment

by:Henrik Johansson
ID: 24831150
Save the list of computers in the srvlist.txt as one computer name on each line and run the script. The script will query the registry remote and save the result in result.csv
0
 

Author Comment

by:oveloz
ID: 24837014
I tried that - populating the Srvlist.txt file with multiple computers, one computer, computername, FQDN, didn't work.  I then decided to do it at command line - cmd.

Set RegQry=\\%%a\HKLM\Software\Microsoft\Internet Explorer /v Version
 
REG.exe Query %RegQry% > CheckCC.txt

that part is what gives off an error thats i"nvalid key name"
0
 
LVL 31

Expert Comment

by:Henrik Johansson
ID: 24838500
Do you get a value in %RegQry% variable?
echo %RegQry%
I see a minor typo on line 21, %Comp_name% variable is missing trailing %
0
 
LVL 31

Accepted Solution

by:
Henrik Johansson earned 500 total points
ID: 24854601
Verify the syntax of your version of reg.exe by using 'reg query /?'
I just realized that I had a different version of reg.exe located in the current folder having the syntax
'reg query KeyPath\ValueName \\computername'
comparing to the one in system folder having the same syntax as the script
'reg query \\computername\KeyPath /v ValueName'
0
 

Author Closing Comment

by:oveloz
ID: 31602436
I gave up on this, and used psinfo instead.  It was a much more simple and effecive solution.
0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Internet is a big network which is formed by connecting multiple small networks.It is a platform for all the users which are connected to it.Internet act as platform in different fields. Such as: Internet  as a collaboration platform. Internet  as…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question