only 1 there is a macro @LogonMode that is false if the logon script is not running in the logon process.

Bryce