Hi, it actually works for me now, in the sub script that I'm calling from my primary script, I had Quit instead of Exit as my last command, now all the drives get mapped.