Script To Check IE Version Remotely

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

ovelozAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Henrik JohanssonSystems engineerCommented:
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
ovelozAuthor Commented:
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
Henrik JohanssonSystems engineerCommented:
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
Henrik JohanssonSystems engineerCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ovelozAuthor Commented:
I gave up on this, and used psinfo instead.  It was a much more simple and effecive solution.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.