Hi Pr4t3ek,
I haven't tried this myself, so I'm not sure it will even work, but it seemed promising. Supposedly this will unmap your drives, then remap them. Unfortunately I don't know how to check if a drive is already mapped, and if so leave it be.
Set objNetwork = CreateObject("WScript.Network")
With objNetwork
.RemoveNetworkDrive "X:", True
.RemoveNetworkDrive "N:", True
.RemoveNetworkDrive "B:", True
.RemoveNetworkDrive "W:", True
.RemoveNetworkDrive "U:", True
.MapNetworkDrive "X:", "\\glbfil03\groups\Custchoice\Pratik\DailyCRMTasksDatabases"
.MapNetworkDrive "N:", "\\GLANW001\DATA\Data\Common\Operational Resource And Reporting\PA\Data Files"
.MapNetworkDrive "B:", "\\glbfil03\Groups\Custchoice\Pratik"
.MapNetworkDrive "W:", "\\glbfil03\groups\Custchoice\Pratik\DailyRunRateDatabases"
.MapNetworkDrive "U:", "\\10.216.2.31\DOS"
End With
Bookmarks