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