I have scripted BlockIE7.bat to prevent the installation of Internet Explorer 7.0 by Automatic Updates on a list of computers.

The syntax for using BlockIE7.bat is:

BlockIE7 FileName.txt

Where FileName.txt is a text file that contains the NetBIOS computer names, one per line, that you wish to prevent from installing IE7.

BlockIE7.bat contains:

@echo off
if \{%1\}==\{\} @echo Syntax: BlockIE7 FileName.txt&goto :EOF
if not exist %1 @echo Syntax: BlockIE7 %1 - %1 does not exist.&goto :EOF
setlocal
set file=%1
for /f "Tokens=*" %%c in ('type %file%') do (
 @echo REG ADD "\\%%c\HKLM\SOFTWARE\Microsoft\Internet Explorer\Setup\7.0" /V DoNotAllowIE70 /T REG_DWORD /F /D 1
 REG ADD "\\%%c\HKLM\SOFTWARE\Microsoft\Internet Explorer\Setup\7.0" /V DoNotAllowIE70 /T REG_DWORD /F /D 1
)
endlocal