Thanks for the feedback, unfortunetely there isn't a $ in the problem line. One other thing that i noticed is that the old script we run had it set as @userid and that determined the drive to be mapped, is it possible that the @userid is no longer recognized or it has been changed to a new command that i should put in there instead?

The only thing that brought this to mind was that if i just put in the actual login ID of the person it will map the drive just fine so it leads me to believe that it will work there is just something wrong with the @userid part. Thansk again