IE Version

  • Thread starter Thread starter StefanP
  • Start date Start date
S

StefanP

Hello all!

I have to find out the version of the internet explorer from remote
computers in the corporate network.
Did anybody know a way to get the needed information?

best regards
StefanP
 
StefanP said:
I have to find out the version of the internet explorer from remote
computers in the corporate network.
Did anybody know a way to get the needed information?
Hi

E.g. use reg.exe to look up the registry value Version under the key
HKLM\SOFTWARE\Microsoft\Internet Explorer\ is an option. Reg.exe
supports accessing remote registry.

Reg.exe comes built in with WinXP and Win2k3.

Reg.exe for Win2k is in the Support Tools found on the Win2k CD,
\Support\Tools\Suptools.msi, or for the latest version of
Support Tools (should work on non-SP4 computers as well):

http://www.microsoft.com/windows2000/downloads/servicepacks/sp4/supporttools.asp

A previous example by Mark V (change the reg.exe command line to work
against remote computers):

--------------------8<----------------------
@echo off
SETLOCAL
:: comments here
:: Required: reg.exe on PATH (or fully qualified path)
reg.exe query "HKLM\SOFTWARE\Microsoft\Internet Explorer" /v Version | find "Version" >%temp%\iever.$$$
:: above puts data into a file.
:: if need to have in a variable value...
FOR /F "tokens=3 " %%g IN (%temp%\iever.$$$) DO SET _iever=%%g
echo MSIE version is: %_iever%
:: additional stuff here.
del %temp%\iever.$$$
ENDLOCAL
--------------------8<----------------------
 
In microsoft.public.win2000.cmdprompt.admin Torgeir Bakken (MVP)
wrote:
Hi

E.g. use reg.exe to look up the registry value Version under the
key HKLM\SOFTWARE\Microsoft\Internet Explorer\ is an option.
Reg.exe supports accessing remote registry.

Reg.exe comes built in with WinXP and Win2k3.

Reg.exe for Win2k is in the Support Tools found on the Win2k CD,
\Support\Tools\Suptools.msi, or for the latest version of
Support Tools (should work on non-SP4 computers as well):

http://www.microsoft.com/windows2000/downloads/servicepacks/sp4/sup
porttools.asp

A previous example by Mark V (change the reg.exe command line to
work against remote computers):


Thanks for the attribution, but that's not my code snippet. :-)
 
In microsoft.public.win2000.cmdprompt.admin Torgeir Bakken (MVP)
wrote:
Well, that is not what Google tells me:

Well I'll be damned! I dug out an old archive and lo and behold I
did write it. The old memory just ain't what it used to be I guess.
:-)

(And I was ready to blame Google's "new" Groups bugs <G>)

Apologies for faulty gray matter! <VBG>

Can you find the "How a TV works" report I did in sixth grade? <G>
(That'd be pretty scary!)

Cheers T
 
Thank you very much!
I'm a real newbie at scripting.
Can you tell me, how I could make it, that a list of computer is scanned and
all reported in one file?


Torgeir Bakken (MVP) said:
Hi

E.g. use reg.exe to look up the registry value Version under the key
HKLM\SOFTWARE\Microsoft\Internet Explorer\ is an option. Reg.exe
supports accessing remote registry.

Reg.exe comes built in with WinXP and Win2k3.

Reg.exe for Win2k is in the Support Tools found on the Win2k CD,
\Support\Tools\Suptools.msi, or for the latest version of
Support Tools (should work on non-SP4 computers as well):

http://www.microsoft.com/windows2000/downloads/servicepacks/sp4/supporttools.asp

A previous example by Mark V (change the reg.exe command line to work
against remote computers):

--------------------8<----------------------
@echo off
SETLOCAL
:: comments here
:: Required: reg.exe on PATH (or fully qualified path)
reg.exe query "HKLM\SOFTWARE\Microsoft\Internet Explorer" /v Version |
find "Version" >%temp%\iever.$$$
 
StefanP said:
Thank you very much!
I'm a real newbie at scripting.
Can you tell me, how I could make it, that a list of computer is scanned and
all reported in one file?
This should scan all PCs in PCList.txt and log results in Your.log.
The reg query line and the set /P are a bit tricky to get error messages
also to the log file.

::CheckIEver.cmd:::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off&setlocal EnableDelayedExpansion
set "PCL=PCList.txt"
set "LOG=>>Your.log"
echo.Log started %Date% %time% %LOG:~1%
set Key=HKLM\SOFTWARE\Microsoft\Internet Explorer
set Val=Version

for /F "delims=" %%P in (%PCL%) do (
set /P dummy="%%P "<NUL %LOG%
for /F "tokens=2*" %%U in (
'reg query "\\%%P\%Key%" /v %Val% 2^>^&1^|findstr /I "%Val%.*REG error" 2^>NUL'
) do set /P dummy="%%V" <NUL %LOG%
echo.%LOG%
)
::CheckIEver.cmd:::::::::::::::::::::::::::::::::::::::::::::::::::::

==sample=output======================================================
C:\Test>type Your.log
Log started Di 21.12.2004 19:49:13,95
Iterno 6.0.2800.1106
Mars 6.0.2800.1106
Orion Netzwerkpfad wurde nicht gefunden.
==sample=output======================================================

HTH
 
Thank you very much!
I'm a real newbie at scripting.
Can you tell me, how I could make it, that a list of computer is scanned and
all reported in one file?

To get IE versions of all powered on computers in the domain, assuming
rights and running from an XP or 2003 machine.

@echo off
set IE=SOFTWARE\Microsoft\Internet Explorer
echo IE Version Computer>IEversion.txt
for /f %%c in ('net view ^| find "\\"') do (
for /f "skip=4 tokens=3" %%a in (
'reg query "%%c\HKLM\%IE%" /v Version'
) do echo %%a %%c>>IEversion.txt)

Clay Calvert
(e-mail address removed)
Replace "W" with "L"
 
Back
Top