The tech giant did better than expected in many areas of its business.