Solved

Script To Check IE Version Remotely

Posted on 2009-07-11
5
1,627 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
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.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
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 +…

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now