Jens,

Are you sure of that?

It was my understanding that the users profile, and thus the HKCU hive, was loaded before the logon script kicks off on NT/2K/XP.

Now 9x with user profiles is just the opposite... the script executes and then the profile loads.

Anyway, what about a potential problem with the line:
IF $image < "1"

if $Image is numeric, then comparing it to a string could have wierd results. Cast to numeric before doing your comparison:
IF 0+$image<1

[ 22 March 2002, 07:29: Message edited by: bstyles ]