rem This script was modified by Melvin on 12/11/06 for use on CSIS machines. rem Melvin's version does the following: rem Checks for existence of .NET 1.1 rem Adjusts 1.1 trust settings to the LocalIntranet Zone rem Gives user feedback accordingly @Echo Off cls @echo ------------- @echo - ATTENTION - @echo ------------- @echo. @echo. @echo This script will update your .Net v1.1.4322 Trust Configuration @echo in the Local Intranet Zone. @echo. @echo If you still want to run this script, press any key. @echo If you do not wish to run this script, close this Command Shell window now. @echo. @echo. @echo. @echo. @echo. @echo. @echo. @echo. pause IF NOT EXIST %SystemRoot%\Microsoft.NET\Framework\v1.1.4322\caspol.exe GOTO INSTALLDOTNET %SystemRoot%\Microsoft.NET\Framework\v1.1.4322\caspol -q -m -cg LocalIntranet_Zone FullTrust IF ERRORLEVEL 0 SET ERRORLEV=0 IF ERRORLEVEL 1 SET ERRORLEV=1 IF ERRORLEVEL 2 SET ERRORLEV=2 IF ERRORLEVEL 3 SET ERRORLEV=3 IF ERRORLEVEL 4 SET ERRORLEV=4 IF ERRORLEVEL 0 set message=.Net Framework v1.1.4322 IF ERRORLEVEL 0 set errcomm=Local Intranet Zones successfully reconfigured to Full Trust. IF ERRORLEVEL 1 set message=Script Failure! Script did not run successfully. IF ERRORLEVEL 1 set errcomm=ErrorLevel = %ERRORLEV% IF ERRORLEVEL 2 set message=Script Failure! Script did not run successfully. IF ERRORLEVEL 2 set errcomm=ErrorLevel = %ERRORLEV% IF ERRORLEVEL 3 set message=Script Failure! Script did not run successfully. IF ERRORLEVEL 3 set errocomm=ErrorLevel = %ERRORLEV% IF ERRORLEVEL 4 set message=Script Failure! Script did not run successfully. IF ERRORLEVEL 4 set errcomm=ErrorLevel = %ERRORLEV% Ensure .Net v2.0 has already been installed on this machine. If it is not present on this machine, this script will fail. GOTO SHOWRESULTS :INSTALLDOTNET set message=.Net 1.1 was not found on the machine. Please ensure that it is present and patched. :SHOWRESULTS echo off echo ******************************************************************************* echo * S T A T U S * echo ******************************************************************************* echo. echo .Net v1.1 echo --------- echo %message% echo. echo %errcomm% echo --------- echo. echo ******************************************************************************* pause exit