Added network connection

Script was failing because it was run on login (runonce in registry)
faster than the network connection has been made. So it will try 15
times before throwing  a warning