@echo off rem Eastern Nazarene College -- http://www.enc.edu rem Information Technology Services rem $Revision: 1.2 $ rem $Date: 2004/10/12 17:39:23 $ cls echo . echo . echo . **** connect@enc **** echo . ** Cleanup Script ** echo . echo . echo . Please note: this script should be run ONLY if you no longer echo . expect to be regularly using this computer on the ENC network. echo . This script will uninstall the ENC logon script mechanism that echo . normally runs every time this computer is turned on. echo . echo . On most computers this procedure will be completed within just echo . a few seconds. echo . echo . echo . Questions? Call the ITS Helpdesk at 617-745-3727. echo . echo . echo . To abort, type CTRL+C, otherwise: pause cls echo . if not exist "%WINDIR%\encnetgo.bat" goto REGMOD attrib -r "%WINDIR%\encnetgo.bat" del "%WINDIR%\encnetgo.bat" echo . logon script file deleted :REGMOD rem Generate .reg file rem Divert REG4-format-using OSs (9x, NT4) if not "%OS%"=="Windows_NT" goto REG4 ver | find "Windows NT 4.0" if not errorlevel 1 goto REG4 ver | find "Windows NT Version 4.0" if not errorlevel 1 goto REG4 echo Windows Registry Editor Version 5.00> "%TEMP%\enetoff.reg" goto COMMON :REG4 echo REGEDIT4> %TEMP%\enetoff.reg :COMMON echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] >> "%TEMP%\enetoff.reg" echo "ConnectAtENC"=- >> "%TEMP%\enetoff.reg" echo "ENCNetwork"=- >> "%TEMP%\enetoff.reg" rem Apply .reg file regedit /s "%TEMP%\enetoff.reg del "%TEMP%\enetoff.reg" echo . echo . logon script autorun setting removed echo . echo . echo . echo . echo . echo . Procedure complete. echo . echo . echo . Remember, you can always find out what's new at ENC at echo . echo . http://www.enc.edu :END echo . pause cls echo You may close this window now.