Here is a script that does this:

@echo off

if exist c:\winnt\updateIE.sys goto :EOF
reg query
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ProductOptions
|findstr /i server>null
if not errorlevel 1 goto :EOF

reg query
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ProductOptions
|findstr /i lanman>null
if not errorlevel 1 goto :EOF

reg query "HKLM\Software\Microsoft\internet explorer\version" |findstr
/i /c:"5.00." >nul
if not errorlevel 1 goto :up501

reg query "HKLM\Software\Microsoft\internet explorer\version" |findstr
/i /c:"5.50." >nul
if not errorlevel 1 goto :up550

Echo No Update needed > c:\winnt\updateIE.sys
date /t >> c:\winnt\updateIE.sys
time /t >> c:\winnt\updateIE.sys

copy c:\winnt\updateIE.sys \\dc1\log$\%computername%.log >nul
goto :EOF

:up501
echo IE_501_q295106 update complete > c:\winnt\updateIE.sys
date /t >> c:\winnt\updateIE.sys
time /t >> c:\winnt\updateIE.sys
copy c:\winnt\updateIE.sys \\server\log$\%computername%.log >nul
IE_501_q295106.exe /q
shutdown /l /y /c /r
goto :EOF

:up550
echo IE_550_q299618.exe update complete > c:\winnt\updateIE.sys
date /t >> c:\winnt\updateIE.sys
time /t >> c:\winnt\updateIE.sys
copy c:\winnt\updateIE.sys \\server\log$\%computername%.log >nul
IE_550_q299618.exe /q
shutdown /l /y /c /r
goto :EOF




-----Original Message-----
From: Steve Kelsay [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 26, 2001 12:42 PM
To: NT System Admin Issues
Subject: What version of IE? How to tell

If the security patch to be applied is dependent o what SP level your IE
is at, is there a way in the batch file to determine it and apply the
proper patch?

How are others handling this in 500-700 machine organizations? The
version would be the same when the machines are rolled out, but some
users do have a habit of actually updating the systems from
windowsupdate.





Steve Kelsay
Network Administration Group
South Carolina Department of Revenue
301 Gervais Street
Columbia, SC 29201

(803) 898-5522


Want to unsub? Do that here:
http://www.w2knews.com/rd/rd.cfm?id=unsub
Need a good FAQ? Try this one first:
http://www.ultratech-llc.com/KB/



Want to unsub? Do that here:
http://www.w2knews.com/rd/rd.cfm?id=unsub
Need a good FAQ? Try this one first:
http://www.ultratech-llc.com/KB/

Reply via email to