:File Name :Logon.005
:File Location :\\Server_Name\NETLOGON Share
:File Description :%USERNAME%'s logon.bat file to a Single_domain

:ALLUSERS BEGIN
==========
:ALLUSERS
@echo off
echo.
echo Hello %USERNAME%
echo At this time, you're at : %HOMEDRIVE% %HOMESHARE%
echo At the present, you've been logging on by : %LOGONSERVER% of domain : %USERDOMAIN%
echo.

:DUO_BINARY_ARCHITECTURE_TEST
if '%PROCESSOR_ARCHITECTURE%' == ' ' goto BINARY_Win9x
ECHO The processor architecture is NIL, thus at this moment, Windows NT is detected
echo.
goto ARCHITECTURE_TEST_END

:BINARY_Win9x
ECHO Windows OS 9x detected
echo.
goto END

:ARCHITECTURE_TEST_END

:SHORTCUTS
:echo Desktop shortcuts are being verified ...
:copy %logonserver%\netlogon\abcdef~1.doc /r /d

%userprofile%\desktop
:IF EXIST %userprofile%\desktop\abcdef~1.lnk goto DELETE_LINK
:if Not errorlevel 1 goto DOMAIN_PHYSICAL_DRIVE
:DELETE_LINK
:del %userprofile%\desktop\abcdef~1.lnk
:SHORTCUTS_END

:DOMAIN_PHYSICAL_DRIVE
net use driver_letter: %logonserver%\netlogon /persistent:no
:DOMAIN_PHYSICAL_DRIVE_END

:ABCDEFG_CLIENTS
:xcopy /y \\octect.octect.octect.octect\IT\ABCDEFG$.ini %SystemRoot%
:ABCDEFG_CLIENTS_END

:DOMAIN_VIEW_ALLUSERS
:%logonserver%\netlogon\ifmember "GROUP=SID+*ID"
:if NOT ERRORLEVEL 1 goto CONTINUE
:echo You're a member of "GROUP=*ID"
:echo Core site server with group_id deployment is done.

REM Network provider name and password are needed to analyze all servers ...


:\\octect.octect.octect.octect\VSETUP\virtual_setup.exe
:DOMAIN_VIEW_ALLUSERS_EXIT

:ALLUSERS END
==========
:END


:DUO_BINARY_ARCHITECTURE_TEST_END