By default, Windows XP SP2 presents an Information Bar notification when active content is being downloaded from the Internet or from a CD.

To configure the notification when active content is download from the Internet, or run from a file on a CD:

1. Open Internet Explorer.

2. On the Tools menu, press Internet Options.

3. Select the Advanced tab.

4. To configure the notification for active content on the Internet, check or clear the Allow active content to run in files on My Computer box.

5. To configure the notification for active content on a CD, check or clear Allow active content from CDs to run on My Computer.

6. Press Apply.

7. Press OK.

I have scripted ActiveContent.bat to configure active content notification via the registry.

The syntax for using ActiveContent.bat is:

ActiveContent \[I:Y|N\] \[C:Y|N\]

Where at least one parameter is required:

<b>I:Y|N</b> - indicates that you wish to set the Internet notification to <b>Y</b> (<b>Y</b>es) or <b>N</b> (<b>N</b>o).

<b>C:Y|N</b> - indicates that you wish to set the CD notification to <b>Y</b> (<b>Y</b>es) or <b>N</b> (<b>N</b>o).
NOTE: I previously discussed the effects of setting the Internet Active Content setting to 1 ( N) at:
<a href="/article/jsifaq/jsi-tip-8394-the-windows-xp-sp2-feature_localmachine_lockdown-may-prevent-viewing-pictures-in-internet-explorer-script-and-or-activex-errors-.aspx">tip 8394 » The Windows XP SP2 FEATURE_LOCALMACHINE_LOCKDOWN may prevent viewing pictures in Internet Explorer, script and/or ActiveX errors?</a>

<a href="/article/jsifaq/jsi-tip-8722-when-you-open-an-html-or-mhtml-file-in-internet-explorer-on-windows-xp-sp2-autoshapes-that-were-added-by-a-microsoft-office-program-do-not-appear-.aspx">tip 8722 » When you open an HTML or MHTML file in Internet Explorer on Windows XP SP2, AutoShapes that were added by a Microsoft Office program do NOT appear?</a>
NOTE: You can create a custom administrative templates file for use with group policy.

ActiveContent.bat contains:

@echo off
setlocal
if \{%1\}<h1><a name="_goto_err_set_IN_X_set_CD_X_again_if_1_">\{\} goto :err
set IN=X
set CD=X
:again
if \{%1\}</a></h1>\{\} goto doit
set work=%1
shift
if /i "%work:~0,1%" EQU "I" goto Internet
if /i "%work:~0,1%" EQU "C" goto CDROM
goto err
:Internet
if /i "%work:~1,2%" EQU ":Y" set IN=0&goto again
if /i "%work:~1,2%" EQU ":N" set IN=1&goto again
goto err
:CDROM
if /i "%work:~1,2%" EQU ":Y" set CD=0&goto again
if /i "%work:~1,2%" EQU ":N" set CD=1&goto again
goto err
:doit
if "%IN%" NEQ "X" call :doin
if "%CD%" NEQ "X" call :docd
endlocal
goto :EOF
:doin
@echo REG ADD "HKCU\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN" /V Iexplore.exe /T REG_DWORD /F /D %IN%
REG ADD "HKCU\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN" /V Iexplore.exe /T REG_DWORD /F /D %IN%
@echo.
goto :EOF
:docd
@echo REG ADD "HKCU\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN\Settings" /V LOCALMACHINE_CD_UNLOCK /T REG_DWORD /F /D %CD%
REG ADD "HKCU\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN\Settings" /V LOCALMACHINE_CD_UNLOCK /T REG_DWORD /F /D %CD%
@echo.
goto :EOF
:err
@echo Syntax: ActiveContent \[I:Y^|N\] \[C:Y^|N\]
endlocal