Dear,To prevent a kix32 problem you can run them also from a batch file.
How?
code:
@echo off
kix32 %0\..\your_script.kix
if errorlevel 6 rundll.exe shell32.dll,SHExitWindowsEx 6
if errorlevel 6 goto end
if errorlevel 4 rundll.exe shell32.dll,SHExitWindowsEx 4
if errorlevel 4 goto end
:end
@echo off
Your are leaving your kixtart script with f.e Exit(4) for a logoff and
Exit(6) for a reboot.
Very important that the errorlevel order is reversed. Order 4+6 with exit code 6
results in the execution of errorlevel setting 4 and later on - when it is pos-
sible - setting 6. The order 6+4 with same error code will execute only set-
ting 6.
Also you must prevent users can work during the processing of your
logon script. Sometimes a policy setting runs your script asynchronous.Brian, we see many times topics about same issue and the doesn't always
contain the complete answer. Your story gives a good overview about
"how to do it" and your code is very easy. Good job.
greetings.