Hi,

I'ld like to be able to ensure the current user / workstation is logged in the domain in the beginning of a script file... This is a script that is ran independent of the logon process, but should run only when the user is logged on.

I have tried @LDOMAIN, @LSERVER and %LOGONSERVER%. However, all of them show cached values on my windows XP, even when I'm logged in locally!

Is there a way to tell if the user / workstation is actually on the network?

I figured out I could use If Exist ("\\uncshare") as a workaround ("uncshare" is a share I know to exist on the domain). The problem is that there is a 2-3 second delay for this to compete, when the user is not on the network, and it might not be a good solution for use with many users, due to possible access issues to the shares...

What would you suggest?

Thanks