I would actually change your code to:
code:
$Selection = MessageBox("This PC Needs to be logged out. Please save your work and log off. Would you like to log off now?","Time to Logoff",36, 15)
If $Selection = 6 or $Selection = -1
LogOff(0)
Endif

what comes to logged on users...
hmm, at least you can see the connections with "net sessions"
_________________________
!

download KiXnet