I did try your version and had the same results. Is there any way I can debug what is happening during the logon that makes it different from when it's run after the logon?