We were trying to map the drive using $user and this would not work. When we removed this then it worked. It would map the other drives, but it would not map the drive with the $user.