: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 i$p$g_3: %HOMEDRIVE% %HOMESHARE%
echo Your current logon server i$p$g_3: %LOGONSERVER% in the %USERDOMAIN% domain
echo.
:GRID_ARCH_TEST
if '%PROCESSOR_ARCHITECTURE%'==' ' goto Win9x
ECHO Windows NT detected
:start GRIDWINNT.EXE
call %0\..\smsls
echo.
goto GRIDARCHITESTEND
:Win9x
ECHO Windows 9x detected
:start GRIDWIN9x.EXE
echo.
goto END
:GRIDARCHTESTEND
:NETTIME
:NET TIME \\Server_Name /SET /YES
:NETTIME_END
:SHORTCUTS
:echo Verifying Desktop Shortcuts ...
:xcopy %logonserver%\netlogon\*.doc /r /d
%userprofile%\desktop
:IF EXIST %userprofile%\desktop\welcome.lnk
goto DEL_LNK
:if not errorlevel 1 goto NETWORK_QDRIVE
:DEL_LNK
:del %userprofile%\desktop\welcome.lnk
:SHORTCUTS_END
:NETWORK_QDRIVE
net use
$p$g_4: %logonserver%\netlogon /presistent$p$g_3:no
:NETWORK_QDRIVE_END
:%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 version.number Setup from core site server
:call \\Server_Name\VSETUP\VSETUP*.EXE
:call \\Server_Name\VSETUP\VINI.EXE
:Domain_NameVIEW_ALLUSER_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
:sysTEST BEGIN
==========
:sysTEST last modified on: mm.dd.yy grid [Do not modify this section without
permission!!!]
:sysTEST
%logonserver%\netlogon\ifmember "ASIA" "AFRICA" "NORTH_POLE" "SOUTH_POLE" "AMERICA"
%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
: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
: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
: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
: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
: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
:EUROPE_END
:GRIDTEST_END
:GRIDTEST_END
==========
:END
==========
:END last modified on: mm.dd.yy grid [DO NOT MODIFY THIS SECTION WITHOUT
PERMISSION!!!]
:END
:END
==========