The @LOGONMODE macro has been intermittently unreliable over the years. This has ALWAYS worked for me:
 Code:
If @LOGONMODE Or InStr('%PATH%', 'NetLogon')
  $LOGONMODE = 1
This assumes you don't do anything weird like putting NetLogon in the system PATH variable.. \:\)

During login, Windows automatically adds the NetLogon folder to the system path. Once the login process completes, it's gone.

If it's always returning true, just use the PATH method.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D