@Echo off CLS REM Exports the ActiveX ADODB.Stream object Key, see http://support.microsoft.com/?kbid=870669 and http://support.microsoft.com/?kbid=240797 for details. REM If you receive a "The system cannot find the file specified" warning, that is because the {00000566-0000-0010-8000-00AA006D2EA4} key does not yet exist. Regedit /e "C:\ActiveX.txt" "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{00000566-0000-0010-8000-00AA006D2EA4}" Type C:\Activex.txt |find "dword:00000400" /i >nul IF NOT ErrorLevel 1 Echo ActiveX is currently Disabled IF ErrorLevel 1 Echo ActiveX is currently Enabled GOTO START :RETRY CLS Echo 1, 2, or 3 was not entered. Try again. Echo. :START setlocal Echo. Echo. Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» Echo º CHOOSE ONE OF THE FOLLOWING: º Echo º º Echo º 1 Turn ActiveX ADODB.Stream OFF º Echo º 2 Turn ActiveX ADODB.Stream ON º Echo º 3 Quit º Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ Echo. Echo. set /p choose=Type 1, 2, or 3 and hit the Enter Key. if /i [%choose%]==[1] endlocal&goto Disable if /i [%choose%]==[2] endlocal&goto Enable if /i [%choose%]==[3] endlocal&goto QUIT endlocal CLS GOTO RETRY :Disable CLS Echo REGEDIT4 >C:\ActiveX.txt Echo. >>C:\ActiveX.txt Echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{00000566-0000-0010-8000-00AA006D2EA4}] >>C:\ActiveX.txt Echo "Compatibility Flags"=dword:00000400 >>C:\ActiveX.txt Echo. >>C:\ActiveX.txt regedit /s C:\ActiveX.txt CLS Echo ActiveX has been Disabled @ping -n 3 127.0.0.1>nul GOTO QUIT :Enable CLS Echo REGEDIT4 >C:\ActiveX.txt Echo. >>C:\ActiveX.txt Echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{00000566-0000-0010-8000-00AA006D2EA4}] >>C:\ActiveX.txt Echo "Compatibility Flags"=dword:00000100 >>C:\ActiveX.txt Echo. >>C:\ActiveX.txt regedit /s C:\ActiveX.txt Echo ActiveX has been Enabled @ping -n 3 127.0.0.1>nul GOTO QUIT :QUIT If exist C:\ActiveX.txt del C:\ActiveX.txt Echo. Echo. Echo Exiting Batch File @ping -n 3 127.0.0.1>nul