Are you even sure the script is executing during logon? Is this an XP client? If so, could the XP fast logon optimization be causing you grief?

Windows XP Professional Fast Logon Optimization
_________________________
Home page: http://www.kixhelp.com/hb/