Solved

Script To Check IE Version Remotely

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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 +…

707 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