What if you run the script manually afterward ? Can you map the drives manually afterward using net use ? Put some error tracers in your script and display @ERROR and @SERROR.