Microsoft's shares have hit an all-time high after the company posted better-than-expected quarterly profits. Its focus on cloud computing helped…