Oh, it works fine if I run it manually just not via the logon script...