Yes the network is available.

As i explain we have two offices which user frequently moved from one office to the other. Users that receive DHCP address have no issues.

Users that have Static IP address and have to change to DHCP, the script does not run. It has to be manually run, then all drives are mapped.

Is there something that i should add to my script in regards to IP address or domain server?