I have also noticed that if I run the script manually from \\hull\netlogon it runs through fine, it only fails when running as part of logging on / login script