Prekojo,

You didn't say if you have Win9x or NT workstations. Win9x 'current user' environment is NOT set in place until after the logon script has finished, up to then it is the .Default user environment. NT OS workstations are ok.

One way around this is to use HKLM RunOnce entry to run the login script after logon process has finished, (RunOnce entries are executed after the logon script is complete - solves a lot of problems.)

The RunOnce entry can be made either by (1) a small KiXtart logon script used solely to make the entry plus any other commands you want to make that are not dependent upon the User environment being in place first, or (2) using System Policies to make the entry.

Another method is to create a RunOnce entry of Regedit /s 'regfile.reg' - the /s is silent - stops screen output.

Or you could even use a HKLM Run entry so it is run each login, use a local location for the regfile and use your logon script to update the regfile.

If calling logon script from a bat file, use 'xcopy /d regfile' to update regfile.

rgds kyosei
_________________________
KYOSEI. There are only three groups of people that can count. Those that can, and those that can't.