Thanks! Fixed typo and removed three SET lines, $userid=@userid + "$$", and USE Z: "CORP\$userid. Script running fine, mapping users to drives based on group membership BUT still not mapping 95 users directly to their home directories at "\\CORP\users" , any suggestions greatfully accepted!