Please use following command for regist a login user.
net use \serverfolder [password] /user:[username]