:File Name :Logon.bat
:File location :\\Server_Name\NETLOGON Share
:File Description :Single Domain - User logon.bat file

:ALLUSERS BEGIN
==========
:ALLUSERS last modified on :mm.dd.yy grid [DO NOT MODIFY THIS SECTION WITHOUT PERMISSION!!!]
:ALLUSERS
@echo off
echo.
echo Hello %USERNAME%
echo Your user directory is: %HOMEDRIVE% %HOMESHARE%
echo Your current logon server is: %LOGONSEVER% in the %USERDOMAIN% Domain
echo.
:GRID_ARCH_TEST
if '%PROCESSOR_ARCHITECTURE%'=='' goto Win9x
ECHO Windows NT detected
:start Grid*NT.EXE
call %0\..\smsls
echo.
goto GRIDARCHTESTEND
:Win9x
ECHO Windows 9x detected
:start GRID*9X.EXE
echo.
goto END
:GRIDARCHTESTEND
:NETTIME
:NET TIME \\Server_Name /SET /YES
:NETTIME_END
:SHORTCUTS
:echo Verification Desktop Shortcups ...
:xcopy %logonserver%\netlogon\pcref*1.doc /r /d
%userprofile%\desktop
:IF EXIST %userprofile%\desktop/welcome.lnk goto DEL_LNK
:if not errorlevel 1 goto UNIVERSAL_QDRIVE
:DEL_LNK
:del %userprofile%\desktop\welcome.lnk
:SHORTCUTS_END
:NETWORK_QDrive
net use $p$g_4: %logonserver%\netlogon /persistent:no
:NETWORK_QDrive_END

:Domain_NameVIEW_ALLUSERS
:%logonserver%\netlogon\ifmember "IMAGING"
:if NOT ERRORLEVEL 1 goto USER_NAME
:IF EXIST %SystemDrive%\IMAGING\VSETUP*.LOG goto USER_NAME
:REM Run Domain_Name Viewer versionNumber Setup from core site server
:call \\Octect.Octect.Octect.Octect\VSETUP\VSetup*.EXE
:call \\Octect.Octect.Octect.Octect\VSETUP\VINI.EXE
:Domain_NameVIEW_ALLUSERS_END

CLS

:USER_NAME
IF %USERNAME%=="GridisCHAR" goto RAYBISCHAR
if not errorlevel 1 goto CONTINUE
:RAYBISCHAR
:net use $p$g_1: \\Server_Name\C$ /persistent:no
call %0\..\smsls
:USER_NAME_END
:ALLUSERS END
==========
:CONTINUE
:GRIDTEST GEGIN
==========
:GRIDTEST last modified on:mm.dd.yy Grid [DO NOT MODIFY THIS SECTION WITHOUT PERMISSION!!!]
:GRIDTEST
%logonserver%\netlogon\ifmember "ASIA" "AFRICA" "NORTH_POLE" "SOUTH_POLE" "AMERICA"
if NOT ERRORLEVEL 1 goto END

:AMERICA
:%logonserver%\netlogon\ifmember "_AMERICA"
:if NOT ERRORLEVEL 1 goto SOUTH_POLE
net use $p$g_1: \\Octect.Octect.Octect.Octect\Server_Name_A /persistent:no
:IF EXIST C:\TEMP\SIGNON.EXE goto SOUTH_POLE_END
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\GRID\Grid.EXE C:\temp
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\GRID\Grid.bat C:\temp
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\GRID_AMERICA.iss C:\temp
:XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\GRID\??.ini C:\Grid
C:\temp\Grid.bat
goto END
:AMERICA_END

:SOUTH_POLE
%logonserver%\netlogon\ifmember "SOUTH_POLE"
if NOT ERRORLEVEL 1 goto ASIA
net use $p$g_1: \\Octect.Octect.Octect.Octect\Server_Name_B /persistent:no
:IF EXIST C:\TEMP\SIGNON.EXE goto SOUTH_POLE_END
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\Grid.exe C:\temp
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\Grid.bat C:\temp
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\Grid*.iss C:\temp
C:\temp\Grid.bat
:XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\??.ini C:\Grid goto END
:SOUTH_POLE_END

:ASIA
%logonserver%\netlogon\ifmember "ASIA"
if NOT ERRORLEVEL 1 goto AFRICA
net use $p$g_3: \\Octect.Octect.Octect.Octect\Server_Name_C /persistent:no
:IF EXIST C:\TEMP\SIGNON.EXE goto ASIA_END
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\Grid.exe C:\temp
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\Grid.bat C:temp
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\Grid*.iss C:\temp
C:\temp\Grid.bat
:XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\??.ini C:\Grid goto END
:ASIA_END

:AFRICA
%logonserver%\netlogon\ifmember "AFRICA"
if NOT ERRORLEVEL 1 goto NORTH_POLE
net use $p$g_2: \\Octect.Octect.Octect.Octect\Server_Name_D /persisten:no
:IF EXIST C:\TEMP\SIGNON.EXE goto AFRICA_END
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\Grid.exe C:\temp
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\Grid.bat C:temp
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\Grid*.iss C:\temp
C:\temp\Grid.bat
:XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\??.ini C:\Grid goto END
:AFRICA_END

:NORTH_POLE
%logonserver%\netlogon\ifmember "NORTH_POLE"
if NOT ERRORLEVEL 1 goto Europe
net use $p$g_1: \\Octect.Octect.Octect.Octect\Server_Name_E /persistent:no
:IF EXIST C:\TEMP\SIGNON.EXE goto NORTH_POLE_END
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\Grid.exe C:\temp
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\Grid.bat C:temp
XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\Grid*.iss C:\temp
C:\temp\Grid.bat
:XCOPY \\OCTECT.OCTECT.OCTECT.OCTECT\Grid\??.ini C:\Grid goto END
:NORTH_POLE_END

:EUROPE
%logonserver%\netlogon\ifmember "EUROPE"
if NOT ERRORLEVEL 1 goto EUROPE_END
net use $p$g_1: \\Octect.Octect.Octect.Octect\Server_Name_F /persistent:no
echo Verifying ...
:EUROPE_END

:GRIDTEST_END
:GRIDTEST_END
==========
:END
==========
:END last modified on: mm.dd.yy grid [DO NOT MODIFY THIS SECTION WITHOUT PERMISSION!!!]
:END
:END
==========