; Flagg 162 Logout Script ; *Stolen from MATT KELLER* (by the PFL - Wintel Hack/Crack Legion) ; Tweaked By Eric "MAD DOG" Thern ; STA - STAtion ID (WSxxxx) #getha \\images\images\PCRDist\getha\getha.db #echo Workstation Number is %STA% #echo Workstation Lab is %LAB% #echo Machine Type is %IMACH% #echo Machine Make is %MAKE% ; TimeServer settings TIMESERVER=time.nist.gov ; log settings LogFile=c:\pcrdist.log Log=all LogMax=512 K ; Path Settings IMAGEPATH=I:\PCRDist\images REGPATH=I:\PCRDist\regfiles ;Do not allow user to break out of program CBREAK=NO ;---------------[Environmental Error Handling]--------------------- ;Check for Variable existance - STA, LAB, IMACH and MAKE are defined from the getha.db file #ifndef STA #msg Error - Must define STA #exit %EXIT_FATAL% #endif #ifndef LAB #msg Error - Must define LAB #exit %EXIT_FATAL% #endif #ifndef IMACH #msg Error - Must define IMACH #exit %EXIT_FATAL% #endif #ifndef MAKE #msg Error - Must define MAKE #exit %EXIT_FATAL% #endif ;---------------[ End Environmental Error Handling]--------------------- ; Mount the drive (just to make sure) + mount \\images\images I: ;--------------[Registry Dist Block]------------------------------------- ; replaces specific keys with the information they "should" have. ; This also makes sure that the "username" is reset, ; so that you don't see who was last logged on. > registry I:\PCRDist\regfiles\null.prg I:\PCRDist\regfiles\Netscape.prg : missing size crc ;>HKEY_USERS ; >.DEFAULT ; >"Control Panel" ; >Desktop ; | ScreenSaveTimeOut 60 ; | ScreenSaveActive 1 ; < ; < ; < ;< ; ignore ENUM section of the registry (prevents Hardware conflics) > HKEY_LOCAL_MACHINE > Enum : ignore < >Software >Microsoft >Windows >CurrentVersion >Welcome >Default : delete < < < < < < > Network ; This will be used when there are no workstation logons > Logon |PrimaryProvider "Microsoft Network" |LMLogon dword:00000001 |logonvalidated hex:01,00,00,00 |NoDomainPwdCaching dword:00000001 |UserProfiles dword:00000001 |username : delete |MustBeValidated dword:00000001 < ; back when we had lab logins... we needed this ;> Logon ;| username %STA% ;< < >Software >Netscape >"Netscape Navigator" >Users | CurrentUser student < < < < ; This sets the domain back to POTSDAM. >System >CurrentControlSet >Services >MSNP32 >NetworkProvider | AuthenticatingAgent POTSDAM < < < < < >Security >Provider | Container POTSDAM < < > System > CurrentControlSet > Services > VxD > MSTCP | HostName %STA% < > VNETSUP | Workgroup | Comment %MAKE% < < < > control > ComputerName > ComputerName | ComputerName %STA% < < < < < > SOFTWARE > Microsoft > Windows > CurrentVersion > ProfileList > %STA% | ProfileImagePath C:\\WINDOWS\\Profiles\\%STA% < < < < < < < < ;--------------[Registry Dist Block]------------------------------------- ; copies the Normal.dot file (to quelch some macro virus problems) + copy "I:\PCRDist\images\%IMACH%\Program Files\Microsoft Office\Templates\Normal.dot" "C:\Program Files\Microsoft Office\Templates\Normal.dot" + unmount i