The rally in Microsoft shares “has legs” because its capital spending is showing a payoff.