rem This script was created to update the trust settings on .Net v2.0 rem and allow GE/IDX Web Framework to run on workstations where rem .Net v2.0 had already been installed and also where v1.1 had been set to rem disallow necessary trusts. rem MSDOS [Version 5.00.2195] compliant rem Refer to IDX Vantive Case #1835599 Echo On cls @echo ------------- @echo - ATTENTION - @echo ------------- @echo. @echo. @echo This script will update your .Net v1.1 and v2.0 Trust Configurations @echo in the Local Intranet and Trusted Sites Zones. @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 echo off rem IF EXIST C:\WINNT\Microsoft.NET\Framework\v2.0.50727\ cls %SystemRoot%\Microsoft.NET\Framework\v1.1.4322\caspol -q -m -cg LocalIntranet_Zone FullTrust %SystemRoot%\Microsoft.NET\Framework\v1.1.4322\caspol -q -m -cg Trusted_Zone FullTrust cls @ECHO OFF 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=Trusted Sites and 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. cls %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\caspol -q -m -cg LocalIntranet_Zone FullTrust %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\caspol -q -m -cg Trusted_Zone FullTrust cls @ECHO OFF IF ERRORLEVEL 0 SET ERRORLEV2=0 IF ERRORLEVEL 1 SET ERRORLEV2=1 IF ERRORLEVEL 2 SET ERRORLEV2=2 IF ERRORLEVEL 3 SET ERRORLEV2=3 IF ERRORLEVEL 4 SET ERRORLEV2=4 IF ERRORLEVEL 0 set message2=.Net Framework v2.0.50727 IF ERRORLEVEL 0 set errcomm2=Trusted Sites and Local Intranet Zones successfully reconfigured to Full Trust. IF ERRORLEVEL 1 set message2=Script Failure! Script did not run successfully. IF ERRORLEVEL 1 set errcomm2=ErrorLevel = %ERRORLEV2% IF ERRORLEVEL 2 set message2=Script Failure! Script did not run successfully. IF ERRORLEVEL 2 set errcomm2=ErrorLevel = %ERRORLEV2% IF ERRORLEVEL 3 set message2=Script Failure! Script did not run successfully. IF ERRORLEVEL 3 set errcomm2=ErrorLevel = %ERRORLEV2% IF ERRORLEVEL 4 set message2=Script Failure! Script did not run successfully. IF ERRORLEVEL 4 set errcomm2=ErrorLevel = %ERRORLEV2% Ensure .Net v2.0 is actually installed on this machine. If it is not present on this machine, this portion of the script will fail. 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 ******************************************************************************* echo. echo .Net v2.0 echo --------- echo %message2% echo. echo %errcomm2% echo --------- echo. echo ******************************************************************************* echo. pause exit