quote:

get rid of the setconsole line!

Done..

quote:

anyway, why you use files if you already log to the eventlog?

The .OK file is used for a marker to see if the deployment has occurred..

Maybe we should share our NTLOGON.BAT to show what is going on. This is using 4.02 at this point, but you get the idea:
code:
@Echo OFF  

:: LAST EDITED; kld 07.01.02 @10:38PM pst
:: Trimmed down to use less stuff..
:: - From: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q318689 (Modified)

VER | find "NT" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "2000" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "XP" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "98" > nul
IF not errorlevel 1 GOTO Win_9X

VER | find "95" > nul
IF not errorlevel 1 GOTO Win_9X

GOTO unknown_os

:win_NT
@TITLE Company NT Logon Script
ECHO HELLO %USERNAME%!
Echo Welcome to %USERDOMAIN%, Inc. NT Domain Environment
::if not exist %windir%\kix410.ok %LOGONSERVER%\NETLOGON\kix410update.exe /q
::if not exist %windir%\kix411.ok %LOGONSERVER%\NETLOGON\kix411update.exe /q
if not exist %SystemDrive%\Scripts\nul md %SystemDrive%\Scripts
if not exist %SystemDrive%\Scripts\kix402.ok %LOGONSERVER%\NETLOGON\Programs\kix402update.exe /q
%SystemDrive%\Scripts\kix32.exe %LOGONSERVER%\NETLOGON\Kixtart.kix /f
:: -- call is reserved for calling another batch file - BAD MICROSOFT!!
::%windir%\kix32.exe %LOGONSERVER%\NETLOGON\Kixtest.kix
goto end

:win_9X
:: --- CHECK FOR FILES TO SET THE USER NAME
IF NOT EXIST %WINDIR%\PUTINENV.EXE XCOPY \\SERVER\NETLOGON\Programs\Win9x\PUTINENV.EXE %WINDIR%
IF NOT EXIST %WINDIR%\WINSET.EXE XCOPY \\SERVER\NETLOGON\Programs\Win9x\WINSET.EXE %WINDIR%

:: --- SET THE Environment Variables
:: -- Execute the script
::%WINDIR%\SYSTEM\KIX32.EXE %WINDIR%\SYSTEM\W95ENV.KIX

%WINDIR%\PUTINENV.EXE L
%WINDIR%\winset computername=%COMPUTERNAME%
%WINDIR%\winset username=%USERNAME%
%WINDIR%\winset LANGROUP=%LANGROUP%
%WINDIR%\winset LOGONSERVER=%LOGONSERVER%

:: --- DISPLAY THE USER NAME/DOMAIN
ECHO HELLO %USERNAME%!
ECHO Welcome to %LANGROUP%, Inc. Windows 9x Domain Environment

:: **********************************************************************************************
:: ******************************REMOVE FILES NOT NEEDED*****************************************
:: **********************************************************************************************
::if not exist %windir%\kix410.ok %0\..\kix410update.exe /q
::if not exist %windir%\kix411.ok %0\..\kix411update.exe /q
if not exist c:\scripts\nul md c:\scripts
if not exist c:\scripts\kix402.ok %0\..\Programs\kix402update.exe /q
::%0\..\kix.exe %0\..\kix32.exe %0\..\kix95.kix
C:\scripts\kix32.exe %0\..\kixtest.kix
goto end

:unknown_os
:end

quote:

I don't know why you would question the event log entry, your script deliberately puts it there.

I was concerned that a savvy user or Support Desk Tech would be a bit concerned with:

quote:

The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer.

I should probably not worry myself so much with this. [Smile] I was just trying to put together a cleaner roll-out of this.

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's