Solved

Script To Check IE Version Remotely

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Learn about cloud computing and its benefits for small business owners.
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.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
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 +…

831 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