Yeah - you might want to try s(h)elling out to NET - like this ...

shell '%comspec% /c net use x: "\\server\share1" /user:domain\@userid'

-Shawn