Microsoft is betting Windows on AI, hoping to breathe new life into one of the most successful products in tech history.