The entire script is a follows (if it helps)

$x=logevent("4","2","@userid Logoff Event","","LogoffScriptStart")
exit

I don't believe this to be a script issue, I believe it to be an issue with wkix32.exe running while the network is closed or closing. I can prove this by comparing the time I actually logoff and when the event acutally gets written in the event log.

I understand the reply about the accounting 101 but office politics takes precidence over common sense!